Opened 12 years ago
Last modified 12 years ago
#10893 closed Bug
IndexSizeError is thrown on undo when Enter_BR is used — at Initial Version
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | IE Firefox | Cc: |
Description
Problem can be reproduced in Firefox and IE9-10. To reproduce:
- Open the “Replace textarea elements by class name” sample page.
- Put the cursor in the editor content.
- Control-A to select all text and then DELETE.
- Paste in some unformatted text 3 times (I typed "this pasted in" in notepad and copied it to the clipboard).
- Enter carriage return.
- Paste the text in 3 more times.
- Click undo two times.
JS error is thrown:
Message: IndexSizeError: Index or size is negative or greater than the allowed amount
Line: 1942
URI: ckeditor4/core/selection.js
Code: nativeRange.setStart( range.startContainer.$, range.startOffset );