Ticket #6178 (closed Bug: fixed)
Creating and inserting a new element fails in Webkit if editor not focused
| Reported by: | alfonsoml | Owned by: | tobiasz.cudnik |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.4.1 |
| Component: | General | Version: | 3.4 Beta |
| Keywords: | Webkit IBM | Cc: | satya_minnekanti@… |
Description
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 );
Attachments
Change History
Changed 3 years ago by alfonsoml
- Attachment testCreateDiv.html added
comment:1 Changed 3 years ago by tobiasz.cudnik
- Keywords Webkit added; WebKit removed
- Status changed from new to confirmed
- Milestone set to CKEditor 3.5
comment:5 Changed 3 years ago by tobiasz.cudnik
Fixable by 6192.patch from #6192.
comment:6 Changed 3 years ago by tobiasz.cudnik
- Owner set to tobiasz.cudnik
- Status changed from confirmed to review
This is fixed version of 6192.patch dedicated for TC of this ticket.
Note: See
TracTickets for help on using
tickets.

test case