Samsung autosuggest skips first character after first word.

Created on 30 January 2024, 5 months ago
Updated 14 February 2024, 5 months ago

Problem/Motivation

When using a Samsung phone with Chrome browser after the first word the autosuggest will ignore the first character. This is not the case on the ckeditor site itself.

Steps to reproduce

  • Have a Samsung phone (it was possible to reproduce using BrowserStack with Samsung Galaxy S22, Android 12, Chrome, Samsung software keyboard)
  • Have a plain Drupal instal (e.g. 10.2.2 on Simplytest.me)
  • Go to create an article node
  • Go to the body field
  • Type more than 1 word
  • Notice how the suggestions from the keyboard base themselves on the word without the first character
  • Go to https://ckeditor.com/ckeditor-5/demo/editor-types/
  • Try to reproduce the issue, notice that a plain CKEditor does not have this issue

Proposed resolution

Unclear

Remaining tasks

  • Troubleshoot
  • Create a patch (including test)
  • Review
  • Merge
  • 🎉

User interface changes

Issue is resolved for users of Samsung phones.

API changes

None?

Data model changes

None?

🐛 Bug report
Status

Active

Version

10.2

Component
CKEditor 5 

Last updated about 16 hours ago

Created by

🇳🇱Netherlands dutchyoda Lelystad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dutchyoda
  • Status changed to Postponed: needs info 5 months ago
  • 🇧🇪Belgium Wim Leers Ghent 🇧🇪🇪🇺

    Eh … woah. No idea where to even begin here. Also, I don't have access to such a phone.

    Without more detailed steps to reproduce, I doubt we'll ever be able to fix this one. For example: can you reproduce this using different browsers on the same phone?

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    I've been able to reproduce using Browserstack on a Samsung Galaxy S22 with Chrome browser. I did set the keyboard to Nederlands (I haven't actually checked if it is relevant yet, but might well be).

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Yup, confirmed. I installed Drupal 10.2.2 on Simpytest.me and went to create an Article. When using the onscreen keyboard the issue is visible. In all honesty, I suspect this is at least in part an issue with the Samsung keyboard, but looks like it is exclusive to Drupal; I've tried confirming on https://ckeditor.com/ckeditor-5/demo/editor-types/ but it seems to be working fine there.

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Tried to remove all the buttons from the editor on my Simplytest.me install. I had to keep a separator, Drupal wouldn't let me safe an empty toolbar. Still the issue.

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Updated IS

  • Status changed to Active 5 months ago
  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱
  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    I hesitate to add this to the issue summary, but there apparently *are* several issues with the Samsung keyboard. Just haven't found this particular one. But for example https://github.com/ckeditor/ckeditor5/issues/15584

  • 🇧🇪Belgium Wim Leers Ghent 🇧🇪🇪🇺

    Thanks for that detective work, @eelkeblok, much appreciated! 🤩

    I had to keep a separator, Drupal wouldn't let me safe an empty toolbar. Still the issue.

    This makes it 99% likely the problem is upstream, and that it only works on the official CKEditor 5 demo because of some additional plugin that is loaded there and not in Drupal that masks/accidentally fixes the problem 😅 Fascinating!

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    OK. That would warrant setting up a very simple test page with just the editor loaded. Thanks!

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Testing with a limited editor downloaded from CKEditor.com suggests this is a Drupal issue after all. Will do more spelonking and playing with input filter settings to hopefully narrow it down.

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Our next step will be setting up a minimal test with the specific version of CK that comes with Drupal.

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    By what was basically pure luck, I found an instance where the editor is running in Drupal, but the issue did not occur, so the process of elimination could start. I think I have it narrowed down to misc/form.js; when I suppress that (by basically just removing the file from the library defintion and clearing caches), I could "fix" the issue in the editor. Onto whatever is causing the problem inside that file...

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Not sure if the jQuery stuff is the culprit, but I'd love to see what a jQuery-free implementation would do...

  • 🇧🇪Belgium Wim Leers Ghent 🇧🇪🇪🇺

    Keep up the good work! 👏

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    The customer has decided we are not going to continue debugging this, unfortunately. We've come a long way, though, maybe it helps others when they encounter this.

Production build 0.69.0 2024