-
-
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
[IME] Styling is lost after making composition with enabled inline style #3139
Comments
Great God, when will this problem be solved? Or is there any temporary solution? Hope to teach @Mgsy |
Actually, it turned out that this is a regression and this case was working in CKEditor 5 v11.2.0. We're going to fix it in this iteration and include it to the next CKEditor 5 release. This bug has been introduced along with this change - ckeditor/ckeditor5-engine@4f9ac0e. |
This is a serious issue. @oskarwrobel, is now working on finding a solution. We'll post it here and perhaps release a quick small release of ckeditor5-engine to fix it. |
Selection attributes are refreshed after each operation to be sure that selection is always up to date (https://github.com/ckeditor/ckeditor5-engine/issues/1673). A consequence is that attributes are removed from the selection while the composition is in progress. What's going on?
|
We decided to not refresh the selection after each operation (as it was before). It sounds good to have selection up to date after each operation, but it requires some changes for spell checking and composition to remember attributes before replacing text. |
Fix: Prevented from losing selection attributes between operations - IME. Closes https://github.com/ckeditor/ckeditor5-typing/issues/188.
Tests: Added test for checking if an attribute is not lost when composition replaces a text. Part of https://github.com/ckeditor/ckeditor5-typing/issues/188.
Do you think we could release [email protected] with just this change? How unsafe it is? |
I believe the fix should be safe. I am not sure how our environment will handle the fact that the single package is released. Since we use |
From the engine perspective, this fix should be safe. |
I played with the editor a bit during testing and haven't experienced any weird behaviour or regression. |
Originally reported here - https://github.com/ckeditor/ckeditor5-build-classic/issues/69.
Steps to reproduce
Current result
Styling is lost.
It occurs in all browsers.
The text was updated successfully, but these errors were encountered: