Widgets: Error thrown when moving focus from widget to editable by elements path
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
hiddenSelectionContainer
is not removed in right time, and created selection has offset bigger by one.
editor.getSelection().reset()
call placed before range.selectNodeContents( element )
statement did the job, however it should be placed somewhere deeper to be reused. Maybe selectNodeContents itself?
- this issue is originated from #10869
Change History (11)
Description: |
modified (diff)
|
Milestone: |
CKEditor 4.3
|
Status: |
new →
confirmed
|
Version: |
→ 4.3 Beta
|
Milestone: |
→ CKEditor 4.3.1
|
Description: |
modified (diff)
|
Summary: |
Widgets: Error thrown with elementspath #2 →
Widgets: Error thrown when moving focus from widget to editable by elements path
|
Milestone: |
CKEditor 4.3.1 →
CKEditor 4.3.2
|
Owner: |
set to Olek Nowodziński
|
Status: |
confirmed →
assigned
|
Status: |
assigned →
review
|
Status: |
review →
review_passed
|
Resolution: |
→ fixed
|
Status: |
review_passed →
closed
|
Rearranged tickets due to new ones which have high priority.