Opened 7 years ago

Closed 7 years ago

#6178 closed Bug (fixed)

Creating and inserting a new element fails in Webkit if editor not focused

Reported by: Alfonso Martínez de Lizarrondo 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 (2)

testCreateDiv.html (3.2 KB) - added by Alfonso Martínez de Lizarrondo 7 years ago.
test case
6178.patch (1.1 KB) - added by Tobiasz Cudnik 7 years ago.

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by Alfonso Martínez de Lizarrondo

Attachment: testCreateDiv.html added

test case

comment:1 Changed 7 years ago by Tobiasz Cudnik

Keywords: Webkit added; WebKit removed
Milestone: CKEditor 3.5
Status: newconfirmed

comment:2 Changed 7 years ago by Tobiasz Cudnik

Keywords: IBM added

#6185 has been marked as a DUP.

comment:3 Changed 7 years ago by Satya Minnekanti

Cc: satya_minnekanti@… added

comment:4 Changed 7 years ago by Frederico Caldeira Knabben

May be related to [5785].

comment:5 Changed 7 years ago by Tobiasz Cudnik

Fixable by 6192.patch from #6192.

comment:6 Changed 7 years ago by Tobiasz Cudnik

Owner: set to Tobiasz Cudnik
Status: confirmedreview

This is fixed version of 6192.patch dedicated for TC of this ticket.

Changed 7 years ago by Tobiasz Cudnik

Attachment: 6178.patch added

comment:7 Changed 7 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.5CKEditor 3.4.1
Status: reviewreview_failed

This one is being fixed at #6192.

comment:8 Changed 7 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: review_failedclosed

Fixed with [5882], for #6192.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy