-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Spike: Research scope of work of the migration to the beforeInput event. #7728
Comments
Research summaryThe PoC can be found in: https://github.com/ckeditor/ckeditor5/compare/i/7462-before-input?expand=1. The full list of General remarks
Formatting 👍I managed to enable the support for various text formatting using the native text editing toolbar in iOS (bold, italic, underline). 👍It's fairly simple; it comes down to listening to Notes and concerns
Enter 👍I successfully moved the
Notes and concerns
Delete 👍I rewrote the Notes and concerns
Input 👍🤔I implemented the stable typing integration in just a few lines. There are some ambiguities when it comes to Notes and concernsI tested Safari on Mac, Chrome on Mac and Safari on iOS and I discovered there are differences when it comes to
Composition/IME 👎
Other event types 🤔
cc @Reinmar |
We discussed with @oleq our approach to composition. We were testing Chrome so far which only fires the There are two strategies for updating the model while the composition takes places. Below, I'm posting our notes. The first option would be optimal as we wouldn't need to rely on DOM diffing which is doh. HOWEVER, one big assumption here is that during composition the renderer is COMPLETELY switched off. This will most likely cause some issues as the DOM will be desynced with the view for a while (bindings). But there's no other option – while the composition takes place, we must not touch the DOM. Period.
|
The other option – not changing the model during composition is doable as well, however, it may give a lot worse results. For instance:
|
The PoC phase is over. Moving the implementation to the main issue. |
Provide a description of the task
Research scope of work of the migration to the
beforeInput
event.The text was updated successfully, but these errors were encountered: