-
-
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
Disable inline filling character removal during composition #4033
Comments
Stumbled upon one issue in Chrome when removing
The selection change is async so even though Looks like more generic problem, something similar happens also while typing. I'm wondering why it does not happen when typing inside empty element (checking now). Also there is a difference how it behaves with just replacing filler node data |
As with removing |
Extracted disabling block filler during composition to ckeditor/ckeditor5-engine#1353. |
I started to dig deeper into inline filler management (how it will work after only blocking its removal during composition) and it seems there is some avoidable complexity due to unnecessary structure updates (see ckeditor/ckeditor5-engine#1342). For example, having initial HTML like
Avoiding unnecessary rerendering of a |
When managing inline fillers there are basically 4 main cases which needs to be handled properly. Assuming starting HTML like
|
Fix: Renderer should avoid doing unnecessary DOM structure changes. Ensuring that the DOM gets updated less frequently fixes many issues with text composition. Closes #1417. Closes #1409. Closes #1349. Closes #1334. Closes #898. Closes ckeditor/ckeditor5-typing#129. Closes ckeditor/ckeditor5-typing#89. Closes #1427.
Extracted from ckeditor/ckeditor5-engine#896 (comment).
The text was updated successfully, but these errors were encountered: