Index: _whatsnew.html
===================================================================
--- _whatsnew.html (revision 2227)
+++ _whatsnew.html (working copy)
@@ -91,6 +91,9 @@
[#1229] Converting
multiple contiguous paragraphs to Formatted will now be merged into a single
<PRE> block.
+ [#2135] Fixed a
+ data loss bug in IE when there are @import statements in the editor's CSS files,
+ and IE's cache is set to "Check for newer versions on every visit".
See previous versions history
Index: editor/_source/classes/fckeditingarea.js
===================================================================
--- editor/_source/classes/fckeditingarea.js (revision 2227)
+++ editor/_source/classes/fckeditingarea.js (working copy)
@@ -151,18 +151,23 @@
if ( oIFrame.readyState && oIFrame.readyState != 'completed' )
{
var editArea = this ;
- ( oIFrame.onreadystatechange = function()
- {
- if ( oIFrame.readyState == 'complete' )
- {
- oIFrame.onreadystatechange = null ;
- editArea.Window._FCKEditingArea = editArea ;
- FCKEditingArea_CompleteStart.call( editArea.Window ) ;
- }
- // It happened that IE changed the state to "complete" after the
- // "if" and before the "onreadystatechange" assignement, making we
- // lost the event call, so we do a manual call just to be sure.
- } )() ;
+
+ // Using a IE alternative for DOMContentLoaded, similar to the
+ // solution proposed at http://javascript.nwbox.com/IEContentLoaded/
+ setTimeout( function()
+ {
+ try
+ {
+ editArea.Window.document.documentElement.doScroll("left") ;
+ }
+ catch(e)
+ {
+ setTimeout( arguments.callee, 0 ) ;
+ return ;
+ }
+ editArea.Window._FCKEditingArea = editArea ;
+ FCKEditingArea_CompleteStart.call( editArea.Window ) ;
+ }, 0 ) ;
}
else
{