-
-
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
Selecting an Image from bottom to top throws exceptions #7892
Comments
Hi, thanks for the report. I confirm this bug. |
My guess:
If I'm right, we could consider merging overlapping selections. |
Firefox creates a multi-range selection containing three ranges, two of which are identical. The selection post-fixer tries to merge all of them together, but the |
In FF (Win & Mac), with similar steps, this issue also happens to Horizontal Line |
Yes, the Horizontal Line is also affected. My PR #8466 is a general fix for all such cases. |
Fix (engine): Editor should not crash while selecting an Image from bottom to top. Closes #7892.
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
No errors thrown
❌ Actual result
The following error is thrown:
Uncaught CKEditorError: model-selection-range-intersects: Trying to add a range that intersects with another range in the selection. Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/…port/error-codes.html#error-model-selection-range-intersects {"addedRange":{"start":{"root":"main","path":[4],"stickiness":"toNext"},"end":{"root":"main","path":[5,73],"stickiness":"toPrevious"}},"intersectingRange":{"start":{"root":"main","path":[4,0,0],"stickiness":"toNone"},"end":{"root":"main","path":[4,0,0],"stickiness":"toNone"}}}
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: