Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue 3 / CKEditor 5 / Webview Android App > When type anyword and click 'Space' it duplicates the word #17699

Closed
greeto opened this issue Dec 31, 2024 · 13 comments
Labels
domain:typing/ime This issue reports a problem with standard typing & IME (typing method for CJK languages). resolution:resolved This issue was already resolved (e.g. by another ticket). type:bug This issue reports a buggy (incorrect) behavior.

Comments

@greeto
Copy link

greeto commented Dec 31, 2024

📝 Provide detailed reproduction steps (if any)

  1. Create WebView android app.
  2. Create vue 3 app and install any CKEditor 5
  3. From the Android Webivew > Type and word, for example when typing "hello" and click 'space' you see inside the editor "hello hello"

✔️ Expected result

_should be just 1 word ."hello"

❌ Actual result

_got 2 words: "hello hello"

❓ Possible solution

_I don't know, but it works fine with TinyMCE.

📃 Other details

  • Browser: Android webivew
  • OS: Any.
  • First affected CKEditor version: 5
  • Installed CKEditor plugins: none

Image: https://postimg.cc/jLXG7pf5


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@greeto greeto added the type:bug This issue reports a buggy (incorrect) behavior. label Dec 31, 2024
@Witoso
Copy link
Member

Witoso commented Jan 7, 2025

Could you specify the version of the CKEditor 5 you are using?

@Witoso Witoso added the pending:feedback This issue is blocked by necessary feedback. label Jan 7, 2025
@greeto
Copy link
Author

greeto commented Jan 7, 2025

Sure!

"ckeditor5": "^43.3.1"
And
"@ckeditor/ckeditor5-vue": "^7.2.0"

@Witoso
Copy link
Member

Witoso commented Jan 8, 2025

Hmm, we fixed similar problems last year, could you share as well the Android version, phone type, and ideally the keyboard type you are using? Thanks!

@greeto
Copy link
Author

greeto commented Jan 12, 2025

Sure thing!

Devices with Problem(at least): Google Pixel 3a | Galaxy S23 Ultra | Huawei P30 Pro
Android version: 15
Keyboard type: The Default | Happens also on Microsoft Keyboard.

Screen Recording Example Of the Problem:
https://streamable.com/ax4k55

(I got this problem from multiple clients(devices) so it's not one specific device issue)

Very urgent for us :/

@CKEditorBot CKEditorBot removed the pending:feedback This issue is blocked by necessary feedback. label Jan 12, 2025
@greeto
Copy link
Author

greeto commented Jan 15, 2025

Any news/ideas maybe? becomes really urgent for us :/

@Witoso

@Witoso
Copy link
Member

Witoso commented Jan 16, 2025

Hey, we usually don't hastily improve the typing pipeline, this is a very complex matter. We haven't got more requests like that, so we need to pinpoint the cause, and we will be investigating that.

If you're a premium customer, please contact our support to connect this issue to your account.

@greeto
Copy link
Author

greeto commented Jan 19, 2025

Hi, I'm not a premium customer, but if I will be, will it make it faster?
Also, how do I become a premium? @Witoso

@Witoso
Copy link
Member

Witoso commented Jan 20, 2025

So far we couldn't reproduce the issue.

Steps we took:

  1. Use the WebView Android app.
  2. Set up a Vue 3 app and create a CKEditor 5.
  3. Visit the page in the WebView.

We were unable to replicate the issue that was reported with duplicated typing. Could you share some reproduction methods we can use?

@greeto
Copy link
Author

greeto commented Jan 20, 2025

Hi,

  1. Can you share the Webview code you did please?
  2. Here's the base of the Webview I'm using: https://pastebin.com/g4QJLTez
  3. Android Device Emulator: Pixel 3a API 32 arm64-v8a (Android 12)

@Witoso

@Witoso
Copy link
Member

Witoso commented Jan 20, 2025

We didn't create a webview, we are not experts in mobile development :). We used a proxy app that you can test as well (WebView Android app).

@greeto
Copy link
Author

greeto commented Jan 20, 2025

Thanks.

I've opened some debug logs and now I see some errors related to CkEditor while I'm typing:

https://i.postimg.cc/90f1b168/ss.png

@Witoso

@greeto
Copy link
Author

greeto commented Jan 20, 2025

Ok I got the error solved somehow!
Seems I used some custom 'user agent' on that webview but it caused CKEditor throwing errors.
So I've disabled that now and it got resolved.

@Witoso
Copy link
Member

Witoso commented Jan 20, 2025

Good catch, based on the environment the typing may behave differently as devices' input methods are not standardized. AFAIK, we use user agents to detect the environments.

@Witoso Witoso closed this as completed Jan 20, 2025
@Witoso Witoso added domain:typing/ime This issue reports a problem with standard typing & IME (typing method for CJK languages). resolution:resolved This issue was already resolved (e.g. by another ticket). labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:typing/ime This issue reports a problem with standard typing & IME (typing method for CJK languages). resolution:resolved This issue was already resolved (e.g. by another ticket). type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

3 participants