Opened 5 years ago

Closed 5 years ago

#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 (2)

testCreateDiv.html (3.2 KB) - added by alfonsoml 5 years ago.
test case
6178.patch (1.1 KB) - added by tobiasz.cudnik 5 years ago.

Download all attachments as: .zip

Change History (10)

Changed 5 years ago by alfonsoml

test case

comment:1 Changed 5 years ago by tobiasz.cudnik

  • Keywords Webkit added; WebKit removed
  • Milestone set to CKEditor 3.5
  • Status changed from new to confirmed

comment:2 Changed 5 years ago by tobiasz.cudnik

  • Keywords IBM added

#6185 has been marked as a DUP.

comment:3 Changed 5 years ago by satya

  • Cc satya_minnekanti@… added

comment:4 Changed 5 years ago by fredck

May be related to [5785].

comment:5 Changed 5 years ago by tobiasz.cudnik

Fixable by 6192.patch from #6192.

comment:6 Changed 5 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.

Changed 5 years ago by tobiasz.cudnik

comment:7 Changed 5 years ago by fredck

  • Milestone changed from CKEditor 3.5 to CKEditor 3.4.1
  • Status changed from review to review_failed

This one is being fixed at #6192.

comment:8 Changed 5 years ago by fredck

  • Resolution set to fixed
  • Status changed from review_failed to closed

Fixed with [5882], for #6192.

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