ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.61k stars 3.7k forks source link

Can't write text with the help of google input tool extension #13234

Open phpmaster22 opened 1 year ago

phpmaster22 commented 1 year ago

I have a custom build of ckeditor5. I am using google input tool chrome extension to write / input text.

But it is not working in ckeditor5 although it works with sourceEditor.

Why is this behavior and how to fix this?

phpmaster22 commented 1 year ago

any update?

niegowski commented 1 year ago

This browser extension provides a custom IME and it does not work with our beforeinput implementation. I was trying to debug it but it is difficult since the code is heavily obfuscated. For sure it does not use beforeinput. I noticed it uses document.execCommand and some weird custom textInput event but it seems that it fires input event as a side effect of execCommand. This extension looks very popular with 3,000,000+ users. I checked with Slate editor (AFAIR it is the one that uses beforeinput for typing) and it works there.

Reinmar commented 1 year ago

We're talking about https://chrome.google.com/webstore/detail/google-input-tools/mclkkofklkfljcocdinagocijmpgbhab, yes?

One of the first reviews I saw:

Not working on Facebook and Whatsapp Web! This extension not giving support for typing in Whatsapp Web and Facebook. Please fix it ASAP! Because basically most of users use this input tools for typing on social media.

Probably for the same reasons. AFAIK Facebook moved to Lexical so it may be part of this.

IMO, it's unfortunately on the extension side to fire proper events. That's what helped in the other cases with LanguageTool or Microsoft's edit tools and were reasonably simple changes required in these tools (as opposed to probably months of work that we'd need to put into this).

I guess it may be impossible to get in touch with GIT's developers. But I think there's a high chance, if the tool is even maintained, that they are working on resolving the issue with Facebook and Whatsapp. And there's high chance the changes there will resolve the issue with CKEditor support too.

For now, I recommend leaving reviews on the addon page or using the "Contact publisher" option.