Opened 4 years ago

Closed 3 years ago

#13903 closed Bug (fixed)

IndexSizeError in Chrome on getData() after delete widget

Reported by: Daniel Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.7
Keywords: Cc:

Description

Steps to reproduce

  1. Load attached HTML file in Chrome
  2. Follow instructions on the page
  3. Observe error:
Error: Failed to execute 'extend' on 'Selection': 1 is larger than the given node's length.
    at Error (native)
    at k (https://cdn.ckeditor.com/4.5.4/standard-all/ckeditor.js:373:130)
    at c (https://cdn.ckeditor.com/4.5.4/standard-all/ckeditor.js:386:109)
    at h (https://cdn.ckeditor.com/4.5.4/standard-all/ckeditor.js:10:70)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.event.CKEDITOR.event.fire (https://cdn.ckeditor.com/4.5.4/standard-all/ckeditor.js:11:433)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (https://cdn.ckeditor.com/4.5.4/standard-all/ckeditor.js:13:97)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.tools.extend.getData (https://cdn.ckeditor.com/4.5.4/standard-all/ckeditor.js:235:385)
    at HTMLButtonElement.<anonymous> (file:///Users/dimagi/code/vellum/ckeditor-bug.html:40:31)
    at HTMLButtonElement.m.event.dispatch (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:3:8436)
    at HTMLButtonElement.r.handle (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:3:5139)

Expected result

Expected editor.getData() to return editor data.

Actual result

editor.getData() throws exception (see above).

Other details (browser, OS, CKEditor version, installed plugins)

Browser: 46.0.2490.80 (64-bit) OS: Mac OS X 10.8.5 CKEditor 4.5.4 (see attached HTML file for config)

Possibly related issues: #12727 #13307 #13389 #13513

Attachments (1)

ckeditor-bug.html (1.7 KB) - added by Daniel 4 years ago.
Reproduce error

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by Daniel

Attachment: ckeditor-bug.html added

Reproduce error

comment:1 Changed 3 years ago by Jakub Ś

Resolution: fixed
Status: newclosed
Version: 4.5.44.5.7

I have checked your sample and it seems it has started working with latest CKEditor 4.5.7 (I have just changed CDN script version to 4.5.7).

I marking this issue as fixed but if you see other problems with that sample, please let me know.

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