Opened 11 years ago
Last modified 11 years ago
#11719 closed Bug
[IE8] CKEDITOR.dom.element#setHtml() will strips new lines — at Initial Version
Reported by: | Marek Lewandowski | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
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.