-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[FF] Complex selection when flashes spanning across a widget #4364
Comments
I checked how the selection post-fixer fixes the selection: The fixed ranges ("before combining") are ok. The thing is, though, that they don't get combined. We select two ranges and I think that it may be breking Firefox. Those not combined ranges look reasonably, but still – Firefox starts doing weird things. Another thing is that the whole selection is blinking. I think that we may need to stop re-rendering while it's being "done". E.g. I changed |
In fact... I think that we can do a quick fix here to always combine multi-range selections into a single-range selection. This only applies to Firefox and if it won't break anything in tables (which I think it won't), then we'll at least prevent breaking the selection. It will still blink, but we can handle this separately. |
@Reinmar The proposed fix looks OK in this scenario. What about actual mutli-range selection? I think that we cannot blindly merge mutli selection into one big selection: ps.: Currently I'm debuging mergin only one of ranges and it looks like it doesn't work... only changing selection to one range looks like it "fixes" something. |
We don't have to support multi-range selections. Only one browser supports them anyway. And we can make shortcuts as I don't think any user actually knows how to create such selections. Also, we're talking about combining ranges if they were fixed. Not always. |
Yep only then it will happen so after testing it I'm OK with this change anyway. I will make this change part of ckeditor/ckeditor5-engine#1450. |
I extracted the "flashing" part to https://github.com/ckeditor/ckeditor5-engine/issues/1457. The fact that Firefox was breaking the selection (you were losing the anchor) was fixed in ckeditor/ckeditor5-engine#1450 so I'm closing this ticket. |
A followup of ckeditor/ckeditor5-engine#1431 (comment).
The text was updated successfully, but these errors were encountered: