Changes between Initial Version and Version 1 of Ticket #11719


Ignore:
Timestamp:
Mar 25, 2014, 1:33:24 PM (11 years ago)
Author:
Marek Lewandowski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11719 – Description

    initial v1  
     1[IE8] CKEDITOR.dom.element#setHtml() will strips new lines
     2
     3
    14Seems that setHtml strips new lines for IE8.
    25
     
    47
    58{{{
    6                 test_setHtmlNewLines: function() {
    7                         var elem = new CKEDITOR.dom.element( 'pre' ),
    8                                 expectedCode = "foo\n\nbar";
    9                         elem.setHtml( expectedCode );
    10                         assert.areSame( expectedCode, elem.getHtml() );
    11                 },
     9test_setHtmlNewLines: function() {
     10        var elem = new CKEDITOR.dom.element( 'pre' ),
     11                expectedCode = "foo\n\nbar";
     12        elem.setHtml( expectedCode );
     13        assert.areSame( expectedCode, elem.getHtml() );
     14},
    1215}}}
    1316
    1417It does not work only for **pre** element, i've tested it with div, p as well.
     18
     19Was
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy