Opened 6 years ago

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

  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 Ś 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by Jakub Ś

Attachment: divarea.html added

comment:1 Changed 6 years ago by Jakub Ś

Status: newconfirmed

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

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

comment:3 Changed 6 years ago by Jakub Ś

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

Version 1, edited 6 years ago by Jakub Ś (previous) (next) (diff)

comment:4 Changed 4 years ago by Jakub Ś

#13089 was marked as duplicate.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy