Opened 12 years ago
Closed 12 years ago
#9521 closed Bug (fixed)
[Opera&IE] JS error when inserting content into the editor after setData on blurred editor
Reported by: | Piotrek Koszuliński | Owned by: | Piotrek Koszuliński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.0 |
Component: | Core : Selection | Version: | 4.0 |
Keywords: | Cc: |
Description
- Open API sample.
- Focus editor.
- Blur editor.
- Set data.
- Insert text.
Error is thrown.
Change History (5)
comment:1 Changed 12 years ago by
Component: | General → Core : Selection |
---|---|
Owner: | set to Piotrek Koszuliński |
Status: | new → assigned |
comment:2 Changed 12 years ago by
Status: | assigned → review |
---|
comment:3 Changed 12 years ago by
BTW. There's similar clearSelection listner on setData for Webkit - I don't know that issue, but maybe proposed patch makes that redundant.
comment:4 Changed 12 years ago by
Status: | review → review_passed |
---|
Not it's not redundant, that line is to clear the DOM selection in effect.
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Masterised https://github.com/ckeditor/ckeditor-dev/commit/ddd2fb6
Before masterising I reverted part of the patch on Opera and reported issue that forced me to do this (#9568). This patch (scrolling after insertElement) wasn't made by me on purpose and it was not part of this ticket.
Pushed t/9521 on dev&tests.
Besides restoring outdated selection after content DOM unload, insertText was focusing editor too late.