Type of report
Bug
Provide detailed reproduction steps (if any)
- Open https://sdk.ckeditor.com/samples/mentions.html.
- Make sure that the developer console is open.
- Mention one of the users, say, "@ ajames" (without the space).
- Delete the mention added in step 3 one character at a time.
May need to repeat steps 3 and 4 multiple times for the Exception to happen.
Expected result
No errors in developer console.
Actual result
Got the following errors:
Uncaught DOMException: Failed to execute 'setEnd' on 'Range': The offset 6 is larger than the node's length (5).
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.range.getClientRects (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:187:3)
at getViewPosition (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/plugins/autocomplete/plugin.js?t=I6D6:14:470)
at g.updatePosition (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/plugins/autocomplete/plugin.js?t=I6D6:18:76)
at f.viewRepositionListener (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/plugins/autocomplete/plugin.js?t=I6D6:11:217)
at f. (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/plugins/autocomplete/plugin.js?t=I6D6:9:107)
at a.h (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:10:70)
at a. (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:11:433)
at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:13:97)
at CKEDITOR.plugins.undo.UndoManager.type (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:1079:373)
at CKEDITOR.plugins.undo.NativeEditingHandler.onKeyup (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:1090:121)
Other details
Type of report
Bug
Provide detailed reproduction steps (if any)
May need to repeat steps 3 and 4 multiple times for the Exception to happen.
Expected result
No errors in developer console.
Actual result
Got the following errors:
Uncaught DOMException: Failed to execute 'setEnd' on 'Range': The offset 6 is larger than the node's length (5).
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.range.getClientRects (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:187:3)
at getViewPosition (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/plugins/autocomplete/plugin.js?t=I6D6:14:470)
at g.updatePosition (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/plugins/autocomplete/plugin.js?t=I6D6:18:76)
at f.viewRepositionListener (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/plugins/autocomplete/plugin.js?t=I6D6:11:217)
at f. (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/plugins/autocomplete/plugin.js?t=I6D6:9:107)
at a.h (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:10:70)
at a. (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:11:433)
at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:13:97)
at CKEDITOR.plugins.undo.UndoManager.type (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:1079:373)
at CKEDITOR.plugins.undo.NativeEditingHandler.onKeyup (https://sdk.ckeditor.com/vendor/ckeditor/4.10.0/ckeditor.js:1090:121)
Other details