-
-
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
Selection rendering breaks composition #3742
Comments
That's why I said that during composition ALL rendering must be stopped. |
This is iteration 3 as it doesn't involve a cleanup but rather a bug fix. |
The long discussion unfortunately landed in the PR: ckeditor/ckeditor5-engine#861. |
Proof that we can't render anything during composition: ckeditor/ckeditor5-typing#110 (comment). |
Blocking selection during composition may be problematic due to the way how renderer works now. The fact that some nodes may be replaced during composition (see ckeditor/ckeditor5-engine#1334 for more details) results in selection changing its position: In the above example I simply blocked the
So in this case to make selection stay where it is we could:
|
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
This check should prevent changing selection on composition: https://github.com/ckeditor/ckeditor5-engine/blob/cc5c39ec02a8096a92b246a331d9240eef1e272d/src/view/renderer.js#L428
It works for the regular navigation, but because of some reason during the composition, when I press left arrow to change the character value, the offsets do not match, selection is rerendered and composition is broken.
The text was updated successfully, but these errors were encountered: