Changeset 2255
- Timestamp:
- 07/22/08 04:35:38 (5 years ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 2 edited
-
_whatsnew.html (modified) (1 diff)
-
editor/_source/classes/fckeditingarea.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/_whatsnew.html
r2247 r2255 96 96 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2363">#2363</a>] There 97 97 were some sporadic "Permission Denied" errors with IE on some situations.</li> 98 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2135">#2135</a>] Fixed a 99 data loss bug in IE when there are @import statements in the editor's CSS files, 100 and IE's cache is set to "Check for newer versions on every visit".</li> 98 101 </ul> 99 102 <p> -
FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
r2055 r2255 152 152 { 153 153 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 ) ; 166 171 } 167 172 else
Note: See TracChangeset
for help on using the changeset viewer.
