Ticket #6178 (closed Bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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

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

Change History

Changed 4 years ago by alfonsoml

test case

comment:1 Changed 4 years ago by tobiasz.cudnik

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

comment:2 Changed 4 years ago by tobiasz.cudnik

  • Keywords IBM added

#6185 has been marked as a DUP.

comment:3 Changed 4 years ago by satya

  • Cc satya_minnekanti@… added

comment:4 Changed 4 years ago by fredck

May be related to [5785].

comment:5 Changed 4 years ago by tobiasz.cudnik

Fixable by 6192.patch from #6192.

comment:6 Changed 4 years ago by tobiasz.cudnik

  • Status changed from confirmed to review
  • Owner set to tobiasz.cudnik

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

Changed 4 years ago by tobiasz.cudnik

comment:7 Changed 4 years ago by fredck

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

This one is being fixed at #6192.

comment:8 Changed 4 years ago by fredck

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

Fixed with [5882], for #6192.

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