Opened 12 years ago
Last modified 12 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 )
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 12 years ago by
| Description: | modified (diff) |
|---|
comment:2 Changed 12 years ago by
| Description: | modified (diff) |
|---|
