Opened 10 years ago

Last modified 10 years ago

#11719 closed Bug

[IE8] CKEDITOR.dom.element#setHtml() will strips new lines — at Version 2

Reported by: Marek Lewandowski Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description (last modified by Marek Lewandowski)

Seems that setHtml strips new lines for IE8.

Here's js code to reproduce the issue:

test_setHtmlNewLines: function() {
	var elem = new CKEDITOR.dom.element( 'pre' ),
		expectedCode = "foo\n\nbar";
	elem.setHtml( expectedCode );
	assert.areSame( expectedCode, elem.getHtml() );
},

It does not work only for pre element, i've tested it with div, p as well.

Pushed TC to tests in t/11719.

Change History (2)

comment:1 Changed 10 years ago by Marek Lewandowski

Description: modified (diff)

comment:2 Changed 10 years ago by Marek Lewandowski

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy