Changeset 607


Ignore:
Timestamp:
08/01/2007 09:08:28 AM (8 years ago)
Author:
martinkou
Message:

Fix for #523 and #141 : FCK.Focus() doesn't work after fiddling with the unselectable attribute.

File:
1 edited

Legend:

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

    r589 r607  
    170170        if ( FCKBrowserInfo.IsIE )
    171171        {
    172                 // The fiddling with UNSELECTABLE is a trick for fixing an IE browser bug, don't remove.
    173                 // See #523 for information about the bug.
    174                 oDoc.body.unselectable = "on" ;
     172                oDoc.body.disabled = true ;
    175173                oDoc.body.contentEditable = true ;
    176                 var enableFunc = function()
    177                 {
    178                         oDoc.body.removeAttribute("unselectable") ;
    179                 }
    180                 setTimeout( enableFunc, 1 ) ;
     174                oDoc.body.disabled = false ;
    181175
    182176                /* The following commands don't throw errors, but have no effect.
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy