Opened 12 years ago
Last modified 10 years ago
#10411 confirmed Bug
Bookmarks are rooted to documentElement.
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Selection | Version: | 4.0 Beta |
Keywords: | Cc: |
Description
Issue reported on our support channel.
In CKEditor 4.1, Image bookmarks are rooted to the documentElement (see CKEDITOR.dom.element::getByAddress). This is probably fine if the editor is in an iframe, but problematic if the 'divarea' plugin is enabled. If an element is inserted before the editor, the selection will be placed in the wrong position (or get an error) when invoking undo.
To reproduce:
- copy attached sample into samples folder.
- Open it in browser.
- Delete character with backspace
- Wait 500ms and press Undo
Result: Error is thrown - IndexSizeError: Index or size is negative or greater than the allowed amount.
Problem can be reproduced from CKEditor 4.0 beta.
Attachments (1)
Change History (5)
Changed 12 years ago by
Attachment: | divarea.html added |
---|
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|
Good point. This is also problematic in case of inline editor.