Opened 12 years ago
Last modified 12 years ago
#11021 closed Bug
Widgets: Error thrown with elementspath #2 — at Version 1
| Reported by: | Marek Lewandowski | Owned by: | |
|---|---|---|---|
| Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 4.3.2 |
| Component: | General | Version: | 4.3 Beta |
| Keywords: | Cc: |
Description (last modified by )
After talk with PK we decided to create yet separate ticket for original issue reported in #10869, since issue required more sophisticated solution.
- Open samples/plugins/image2/image2.html
- Select a widget.
- In elementspath, click "body"
- An error is thrown (Chrome, Firefox):
Uncaught IndexSizeError: Index or size was negative, or greater than the allowed value.
IE9:SCRIPT5022: DOM Exception: INDEX_SIZE_ERR (1)
additional info:
- Issue is caused because
hiddenSelectionContaineris not removed in right time, and created selection has offset bigger by one. editor.getSelection().reset()call placed beforerange.selectNodeContents( element )statement did the job, however it should be placed somewhere deeper to be reused. Maybe selectNodeContents itself?
