-
-
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
[FF] Error after performing undo in the image caption #721
Comments
OMG... Perhaps FF is unable to move selection that quickly between nested editables. The first thing to do here will be to create a limited test case for it so we can report it because this is a recurring bug ;/ |
Here is another case: Steps to reproduce
Error
|
Can we have a test case without the editor? @Mgsy, do you think you could try preparing it? |
It turned out that creating a limited TC wasn't easy, so I checked whether there are ways to mitigate this problem. It turns out that there's a way to workaround this by focusing the root which is going to take the selection. So what I have now is: _updateDomSelection( domRoot ) {
...
domRoot.focus();
domSelection.collapse( anchor.parent, anchor.offset );
domSelection.extend( focus.parent, focus.offset );
} And the problem doesn't occur anymore. However, this isn't a complete solution yet. We should not focus the root if it doesn't have focus in the view. Otherwise, we may be stealing the focus from other places. OTOH, I'm not sure if we can call
|
OK, |
Fix: Fixed a bug where Firefox would throw an `NS_ERROR_FAILURE` error when moving selection from a nested editable to the root editable. Closes ckeditor/ckeditor5#721.
🐞 Is this a bug report or feature request? (choose one)
💻 Version of CKEditor
1.0.0-alpha2
📋 Steps to reproduce
Heading 1
and type something.✅ Expected result
No error in the console.
❎ Actual result
There is the error in the console.
📃 Other details that might be useful
It could be related - #676.
Error
GIF
Other information
OS: Windows 10, MacOS X
Browser: Firefox
The text was updated successfully, but these errors were encountered: