Creating and inserting a new element fails in Webkit if editor not focused
Running this code generates an error in Webkit (Safari & Chrome) at the line 1170 of the selection plugin if the editor still hasn't been focused:
var oDiv = oEditor.document.createElement( 'DIV' ) ;
oDiv.setAttribute("class", "wrapper");
oDiv.$.innerHTML = "new div";
oEditor.insertElement( oDiv );
Change History (10)
| Keywords: |
Webkit added; WebKit removed
|
| Milestone: |
→ CKEditor 3.5
|
| Status: |
new →
confirmed
|
| Cc: |
satya_minnekanti@… added
|
| Owner: |
set to Tobiasz Cudnik
|
| Status: |
confirmed →
review
|
| Milestone: |
CKEditor 3.5 →
CKEditor 3.4.1
|
| Status: |
review →
review_failed
|
| Resolution: |
→ fixed
|
| Status: |
review_failed →
closed
|
test case