Changeset 1775
- Timestamp:
- 2008-03-22 17:40:44 (6 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/_source/classes/fckeditingarea.js (modified) (2 diffs)
-
editor/_source/internals/fck.js (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
r1708 r1775 301 301 if ( this.Mode == FCK_EDITMODE_WYSIWYG ) 302 302 { 303 // The following check is important to avoid IE entering in a focus loop. Ref:304 // http://sourceforge.net/tracker/index.php?func=detail&aid=1567060&group_id=75348&atid=543653305 if ( FCKBrowserInfo.IsIE && this.Document.hasFocus() )306 this._EnsureFocusIE() ;307 308 this.Window.focus() ;309 310 // In IE it can happen that the document is in theory focused but the active element is outside it311 303 if ( FCKBrowserInfo.IsIE ) 312 this._EnsureFocusIE() ; 304 this._FocusIE() ; 305 else 306 this.Window.focus() ; 313 307 } 314 308 else … … 324 318 } 325 319 326 FCKEditingArea.prototype._EnsureFocusIE = function() 327 { 328 // In IE it can happen that the document is in theory focused but the active element is outside it 320 FCKEditingArea.prototype._FocusIE = function() 321 { 322 // In IE it can happen that the document is in theory focused but the 323 // active element is outside of it. 329 324 this.Document.body.setActive() ; 325 326 this.Window.focus() ; 330 327 331 328 // Kludge for #141... yet more code to workaround IE bugs -
FCKeditor/trunk/editor/_source/internals/fck.js
r1629 r1775 1146 1146 function FCKFocusManager_Win_OnFocus_Area() 1147 1147 { 1148 // Check if we are already focusing the editor (to avoid loops). 1149 if ( FCKFocusManager._IsFocusing ) 1150 return ; 1151 1152 FCKFocusManager._IsFocusing = true ; 1153 1148 1154 FCK.Focus() ; 1149 1155 FCKFocusManager_Win_OnFocus() ; 1156 1157 // The above FCK.Focus() call may trigger other focus related functions. 1158 // So, to avoid a loop, we delay the focusing mark removal, so it get 1159 // executed after all othre functions have been run. 1160 FCKTools.RunFunction( function() 1161 { 1162 delete FCKFocusManager._IsFocusing ; 1163 } ) ; 1150 1164 } 1151 1165 -
FCKeditor/trunk/_whatsnew.html
r1773 r1775 113 113 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1998">#1998</a>] The native 114 114 XMLHttpRequest class is now used in IE, whenever it is available.</li> 115 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1792">#1792</a>] In IE, 116 the browser was able to enter in an infinite loop when working with multiple editors 117 in the same page. </li> 115 118 </ul> 116 119 <h3>