Ticket #1654: 1654.patch

File 1654.patch, 1.6 KB (added by Frederico Caldeira Knabben, 12 years ago)
  • _whatsnew.html

     
    5757                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/339">#339</a>] [<a
    5858                        target="_blank" href="http://dev.fckeditor.net/ticket/681">#681</a>] The SpellerPages
    5959                        spell checker will now completely ignore the presence of HTML tags in the text.</li>
     60                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1654">#1654</a>] The editor
     61                        was not loading on an specific unknown situation. The breaking point has been removed.</li>
    6062        </ul>
    6163        <p>
    6264                <a href="_whatsnew_history.html">See previous versions history</a>
  • editor/_source/classes/fckeditingarea.js

     
    4545        var oTargetDocument     = FCKTools.GetElementDocument( eTargetElement ) ;
    4646
    4747        // Remove all child nodes from the target.
    48         var oChild ;
    49         while( ( oChild = eTargetElement.firstChild ) )         // Only one "=".
    50         {
    51                 // Set innerHTML = '' to avoid memory leak.
    52                 if ( oChild.contentWindow )
    53                         oChild.contentWindow.document.body.innerHTML = '' ;
     48        while( eTargetElement.firstChild )
     49                eTargetElement.removeChild( eTargetElement.firstChild ) ;
    5450
    55                 eTargetElement.removeChild( oChild ) ;
    56         }
    57 
    5851        if ( this.Mode == FCK_EDITMODE_WYSIWYG )
    5952        {
    6053                // For FF, document.domain must be set only when different, otherwhise
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy