Changeset 205

Show
Ignore:
Timestamp:
2007-03-13 14:55:11 (22 months ago)
Author:
fredck
Message:

Fixed #142 : On IE, the focus is now forced when SetHTML (called when switching modes).

Location:
FCKeditor/trunk/editor/_source
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckeditingarea.js

    r172 r205  
    216216                if ( this.Mode == FCK_EDITMODE_WYSIWYG ) 
    217217                { 
     218                        // The following check is important to avoid IE entering in a focus loop. Ref: 
     219                        // http://sourceforge.net/tracker/index.php?func=detail&aid=1567060&group_id=75348&atid=543653 
    218220                        if ( FCKBrowserInfo.IsIE && this.Document.hasFocus() ) 
    219221                                return ; 
  • FCKeditor/trunk/editor/_source/internals/fck.js

    r201 r205  
    647647        if ( FCK._ForceResetIsDirty ) 
    648648                FCK.ResetIsDirty() ; 
     649         
     650        // This is a tricky thing for IE. In some cases, even if the cursor is 
     651        // blinking in the editing, the keystroke handler doesn't catch keyboard 
     652        // events. We must activate the editing area to make it work. (#142). 
     653        if ( FCKBrowserInfo.IsIE && FCK.HasFocus ) 
     654                FCK.EditorDocument.body.setActive() ; 
    649655 
    650656        FCK.OnAfterSetHTML() ;