Changeset 569

Show
Ignore:
Timestamp:
2007-07-27 06:27:07 (16 months ago)
Author:
martinkou
Message:

Fixed #523 : Added a workaround for an IE browser bug where the browser would move the focus into the editing area unconditionally due to unrelated JavaScript actions (e.g. setting an anchor's href attribute) outside of FCKeditor.

Files:
1 modified

Legend:

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

    r449 r569  
    170170        if ( FCKBrowserInfo.IsIE ) 
    171171        { 
     172                oDoc.body.unselectable = "on" ; 
    172173                oDoc.body.contentEditable = true ; 
     174                var enableFunc = function() 
     175                { 
     176                        oDoc.body.removeAttribute("unselectable") ; 
     177                } 
     178                setTimeout( enableFunc, 1 ) ; 
    173179 
    174180                /* The following commands don't throw errors, but have no effect.