Opened 10 years ago
Closed 9 years ago
#13389 closed Bug (fixed)
editor.getData() fails, when cursor is next to a HR tag
Reported by: | wginolas | Owned by: | kkrzton |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.7 |
Component: | General | Version: | 4.4.6 |
Keywords: | Blink | Cc: |
Description
- Configure a inline CKEditor with the Sourcedialog plugin enabled.
- Visit this editor with Chrome.
- Enter this content via the Sourcedialog plugin:
<hr />
- Open the Sourcedialog right after you closed it.
- The dialog is empty and the following exception is thrown:
Uncaught IndexSizeError: Failed to execute 'extend' on 'Selection': 1 is larger than the given node's length. moveNativeSelectionToBookmark @ selection.js:224 afterData @ selection.js:895 listenerFirer @ event.js:144 CKEDITOR.event.fire @ event.js:290 CKEDITOR.editor.fire @ editor_basic.js:24 CKEDITOR.tools.extend.getData @ editor.js:880 onShow @ sourcedialog.js:24 listenerFirer @ event.js:144 CKEDITOR.event.fire @ event.js:290 (anonymous function) @ plugin.js:878 (anonymous function) @ tools.js:464
I do not fully understand, what is happening here, but the Souredialog plugin calls editor.getData() when the dialog is opened. This call fails.
Change History (8)
comment:1 Changed 10 years ago by
Keywords: | Blink added |
---|---|
Status: | new → confirmed |
Version: | 4.4.7 → 4.4.6 |
comment:4 Changed 9 years ago by
Milestone: | → CKEditor 4.5.7 |
---|
comment:5 Changed 9 years ago by
Owner: | set to kkrzton |
---|---|
Status: | confirmed → assigned |
comment:6 Changed 9 years ago by
This issue is also related to #13816 which is reimplementation of Filling Character handling mechanism.
I switched to t/13816 and perform some tests for this particular issue. The #13816 fixes also this issue so if #13816 is planned to be released also in 4.5.7 milestone there is no need to do some additional fixes for this issue.
I will provide automatic tests to cover this issue.
comment:7 Changed 9 years ago by
Status: | assigned → review |
---|
comment:8 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
Fixed with git:2d078ff42a by #13816.
Problem can be reproduced from CKEditor 4.4.6 in Blink browsers only.
Error is:Uncaught IndexSizeError: Failed to execute 'extend' on 'Selection': 1 is larger than the given node's length.
Message:
Line: 224
URI: core/selection.js
Code:
sel.extend( bm[ 1 ].node, bm[ 1 ].offset );