Changeset 620
- Timestamp:
- 2007-08-03 11:21:14 (13 months ago)
- Location:
- FCKeditor/trunk/editor/_source
- Files:
-
- 2 modified
-
classes/fckeditingarea.js (modified) (2 diffs)
-
internals/fck.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
r608 r620 264 264 // http://sourceforge.net/tracker/index.php?func=detail&aid=1567060&group_id=75348&atid=543653 265 265 if ( FCKBrowserInfo.IsIE && this.Document.hasFocus() ) 266 {267 266 // In IE it can happen that the document is in theory focused but the active element is outside it 268 267 this.Document.body.setActive() ; 269 // Kludge for #141... yet more code to workaround IE bugs270 var range = this.Document.selection.createRange() ;271 range.moveEnd( "character", 1 ) ;272 range.select() ;273 range.collapse( true ) ;274 range.select() ;275 return ;276 }277 268 278 269 if ( FCKBrowserInfo.IsSafari ) … … 284 275 // In IE it can happen that the document is in theory focused but the active element is outside it 285 276 if ( FCKBrowserInfo.IsIE ) 286 {287 277 this.Document.body.setActive() ; 288 // Kludge for #141... yet more code to workaround IE bugs289 var range = this.Document.selection.createRange() ;290 range.moveEnd( "character", 1 ) ;291 range.select() ;292 range.collapse( true ) ;293 range.select() ;294 }295 278 } 296 279 } -
FCKeditor/trunk/editor/_source/internals/fck.js
r602 r620 129 129 130 130 this.Events.FireEvent( 'OnStatusChange', newStatus ) ; 131 132 // Kludge for #141... yet more code to workaround IE bugs 133 var range = this.EditorDocument.selection.createRange() ; 134 range.moveEnd( "character", 1 ) ; 135 range.select() ; 136 range.collapse( true ) ; 137 range.select() ; 138 return ; 131 139 }, 132 140