Opened 8 years ago

Last modified 8 years ago

#14895 confirmed Bug

Uncaught IndexSizeError JS error

Reported by: Karen Ananiev Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.7
Keywords: Webkit Blink Cc:

Description

We faced this issue in different conditions but there are the steps to consistently reproduce it. It seems normalization of bookmark sometimes works incorrect so Undo feature stops to work.

Steps to reproduce

  1. Open CKEditor demo http://ckeditor.com/demo
  2. Clear all contents
  3. Enable SCAYT
  4. Apply Heading 1
  5. Type something like "abababab" then hit Shift+Enter
  6. Move focus out of the editor
  7. Click inside editor to back focus and hit Shift+Enter again
  8. Type "test" and select it
  9. Apply Heading 2
  10. Perform Undo one or two times

See attached video with all of these steps.

Expected result

Undo works

Actual result

Undo doesn't work. There is JS error ckeditor.js:415 Uncaught IndexSizeError: Failed to execute 'setStart' on 'Range': There is no child at offset 6.

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

Chrome


There is one more case with the same error.

Steps to reproduce

  1. Open CKEditor demo http://ckeditor.com/demo
  2. Place cursor after the heading and hit Shift+Enter
  3. Move focus out of the editor
  4. Back focus and type "test"
  5. Select "test" and apply Heading 2

JS error in console: ckeditor.js:380 Uncaught IndexSizeError: Failed to execute 'setStart' on 'Range': The offset 7 is larger than or equal to the node's length (4).

Attachments (1)

quickcast-30-09-2016-08-40-24.mp4 (2.0 MB) - added by Karen Ananiev 8 years ago.

Change History (2)

Changed 8 years ago by Karen Ananiev

comment:1 Changed 8 years ago by Jakub Ś

Keywords: Webkit Blink added
Status: newconfirmed
Version: 4.5.7

Both problems can be reproduced from CKEditor 4.5.7 in Safari and Chrome.

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