Ticket #3801: 3801.patch

File 3801.patch, 1.4 KB (added by Tobiasz Cudnik, 15 years ago)
  • CHANGES.html

     
    7878                <li><a href="http://dev.fckeditor.net/ticket/3829">#3829</a> : Fixed remove empty link on output data.</li>
    7979                <li><a href="http://dev.fckeditor.net/ticket/3730">#3730</a> : Indent is performing on the whole
    8080                        block instead of selected lines in enterMode = BR.</li>
     81                <li><a href="http://dev.fckeditor.net/ticket/3801">#3801</a> : Comments at the start of the document was lost in IE.</li>
    8182        </ul>
    8283        <h3>
    8384                CKEditor 3.0 RC</h3>
  • _source/plugins/htmldataprocessor/plugin.js

     
    311311                        // Call the browser to help us fixing a possibly invalid HTML
    312312                        // structure.
    313313                        var div = document.createElement( 'div' );
    314                         div.innerHTML = data;
    315                         data = div.innerHTML;
     314                        // #3801 IE: Comments at the start of the document get lost
     315                        if ( CKEDITOR.env.ie && /^<!--/.test( data ) )
     316                        {
     317                                div.innerHTML = 'a' + data;
     318                                data = div.innerHTML.substr( 1 );
     319                        }
     320                        else
     321                        {
     322                                div.innerHTML = data;
     323                                data = div.innerHTML;
     324                        }
    316325
    317326                        if ( CKEDITOR.env.ie )
    318327                                data = unprotectEncodedTags( data );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy