| 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 ) ; |