Ticket #2135: 2135_2.patch

File 2135_2.patch, 2.1 KB (added by Martin Kou, 16 years ago)
  • _whatsnew.html

     
    9191                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1229">#1229</a>] Converting
    9292                        multiple contiguous paragraphs to Formatted will now be merged into a single
    9393                        &lt;PRE&gt; block.</li>
     94                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2135">#2135</a>] Fixed a
     95                        data loss bug in IE when there are @import statements in the editor's CSS files,
     96                        and IE's cache is set to "Check for newer versions on every visit".</li>
    9497        </ul>
    9598        <p>
    9699                <a href="_whatsnew_history.html">See previous versions history</a></p>
  • editor/_source/classes/fckeditingarea.js

     
    151151                if ( oIFrame.readyState && oIFrame.readyState != 'completed' )
    152152                {
    153153                        var editArea = this ;
    154                         ( oIFrame.onreadystatechange = function()
    155                         {
    156                                 if ( oIFrame.readyState == 'complete' )
    157                                 {
    158                                         oIFrame.onreadystatechange = null ;
    159                                         editArea.Window._FCKEditingArea = editArea ;
    160                                         FCKEditingArea_CompleteStart.call( editArea.Window ) ;
    161                                 }
    162                         // It happened that IE changed the state to "complete" after the
    163                         // "if" and before the "onreadystatechange" assignement, making we
    164                         // lost the event call, so we do a manual call just to be sure.
    165                         } )() ;
     154                       
     155                        // Using a IE alternative for DOMContentLoaded, similar to the
     156                        // solution proposed at http://javascript.nwbox.com/IEContentLoaded/
     157                        setTimeout( function()
     158                                        {
     159                                                try
     160                                                {
     161                                                        editArea.Window.document.documentElement.doScroll("left") ;
     162                                                }
     163                                                catch(e)
     164                                                {
     165                                                        setTimeout( arguments.callee, 0 ) ;
     166                                                        return ;
     167                                                }
     168                                                editArea.Window._FCKEditingArea = editArea ;
     169                                                FCKEditingArea_CompleteStart.call( editArea.Window ) ;
     170                                        }, 0 ) ;
    166171                }
    167172                else
    168173                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy