[upstream] CKEditor 5 types double words on Chrome on Android

Created on 27 October 2023, about 1 year ago
Updated 1 August 2024, 4 months ago

Upgraded from ckeditor 4 to ckeditor 5 then put it on Drupal 10.1.5 updated the database and configuration, and ckeditor 5 types double words for each word typed

🐛 Bug report
Status

Postponed

Version

11.0 🔥

Component
CKEditor 5 

Last updated about 15 hours ago

Created by

🇺🇸United States bobburns

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @bobburns
  • Status changed to Postponed: needs info about 1 year ago
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    This is … bizarre.

    Please provide steps to reproduce. Obviously this is not happening for anybody else (we would never have shipped CKEditor 5 in any release of Drupal if anybody ever encountered this 😅, so there must be something unique about the combination of modules you have that causes this.

  • 🇺🇸United States bobburns

    I discovered that it only occurs on the Android Chrome browser, I used it fine on the PC Chrome this morning.

    Still does it on Android. I am fine with it - I can put text in enail and paste it into Ckeditor 5 on Android through Chrome.

    It is bizarre - Ckeditor 4 worked fine

  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    That is … super bizarre! 😳

    Can't find anything about it upstream either: https://github.com/search?q=repo%3Ackeditor%2Fckeditor5+android+double&t...

    Which version of Chrome?

  • 🇺🇸United States bobburns

    Android 10 on moto g7 power chrome version 118.0.5993.111

  • Status changed to Postponed 9 months ago
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    Another browser-specific bug: 🐛 Samsung autosuggest skips first character after first word. Active .

  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    Did you report an upstream issue? 🙏

  • 🇺🇸United States Glottus

    Found this issue because I'm just starting to develop a new site (Drupal 10.3.1, early stages, so very few additional modules or theme work done yet) and I found recently that while adding some test content in CKEditor5 fields, I get duplicated words while swiping/typing. I've repeated this on a second site, as well, too. In my observation, it's more a matter of words leap-frogging each other. For example, after typing a third word in a phrase, suddenly the second word reappears just after what I typed, and the effect is immediate - no additional movements to copy/paste or select any auto-suggestions.

    I don't experience this in plain text (long) fields or plain text fields, so the CKEditor5 involvement was my first guess. I can't say for sure what behavior reliably recreates this issue, but safe to say that when adding and editing my first node with a Body field, it became so frustrating that the dummy text I was typing became ABOUT how annoyed I was.

    This 10.3.1 site is not upgraded from a previous version, I'm on Android and using Firefox. Typing something like "I just want" and hitting the space bar to type the next word, suddenly the text in my field reads "I just wantjust", and interestingly enough, the cursor remains at the end of "want" before the duplicated "just" as I would expect in normal circumstances. This keeps happening as I try to add more text, making it a constant two-steps-forward, one-step-back affair.

    To test this further, I then opened the same node from my phone in Chrome and added more text. While I had plenty of frustration with words improperly being "recognized" from my swiping, this word duplication issue seemed not to happen.

    I saved the node, switched back to Firefox and typed "Back to Firefox" which immediately changed to "Back to Firefoxto".

    I would love to find a solution to this!

    Android 14
    Samsung Galaxy S22 Ultra
    One UI version 6.1
    Firefox 128.0.3
    Chrome 127.0.6533.65

  • 🇺🇸United States Glottus

    All of that said, I think I DO see some issues in Chrome as well. Using that same filter-free version of CKEditor5 text, I tried some typing and while it isn't quite the same as the behavior I reported in Firefox, I try something like "I wasn't expecting this to work". No duplicate words happen. I hit the backspace key and it deletes the "k", but also jumps backwards over the "r" instead, leaving my cursor between the "o" and the "r".

    For explanation purposes, I'll insert a pipe where my cursor ends up (in Chrome, NOT in Firefox):
    1) Type "12345"
    2) Hit backspace
    3) read "123|4"
    4) hit backspace
    5) read "12|3"
    6) On a new line, Intend to type "Here's some text", but accidentally get "Hers"
    7) hit backspace, and the entire word disappears (common behavior)
    8) re-try successfully typing "Here's some text"
    9) hit backspace
    10) read "Here's some te|x"

  • 🇺🇸United States Glottus

    And one more comment to confirm that this seems like an upstream thing - I'll have to keep an eye out for CKEditor on other sites to try there, too, but when I visit https://ckeditor.com/ckeditor-5/demo/editor-types/ in my phone's Firefox browser, I got exactly the same results:
    "Here's a new year" immediately becomes "Here's a new yearnew" in their own demo field.

Production build 0.71.5 2024