Opened 11 years ago

Last modified 9 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:


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:

  1. copy attached sample into samples folder.
  2. Open it in browser.
  3. Delete character with backspace
  4. 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)

divarea.html (6.7 KB) - added by Jakub Ś 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Jakub Ś

Attachment: divarea.html added

comment:1 Changed 11 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 11 years ago by Piotrek Koszuliński

Good point. This is also problematic in case of inline editor.

comment:3 Changed 11 years ago by Jakub Ś

Other issues where IndexSizeError is mentioned: #10869, #10858, #10893, #10972.

Last edited 11 years ago by Jakub Ś (previous) (diff)

comment:4 Changed 9 years ago by Jakub Ś

#13089 was marked as duplicate.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy