Changeset 423


Ignore:
Timestamp:
07/09/2007 12:08:44 AM (7 years ago)
Author:
alfonsoml
Message:

Make sure that the body gets active when we set the focus to it in IE. Fix for #291 and #395

Location:
FCKeditor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_whatsnew.html

    r420 r423  
    102102                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/946">#946</a>] Toolbar images didn't show in non-IE 
    103103                        browsers if the path contained a space.</li> 
     104                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/291">#291</a>]  
     105                [<a target="_blank" href="http://dev.fckeditor.net/ticket/395">#395</a>]  
     106                [<a target="_blank" href="http://dev.fckeditor.net/ticket/932">#932</a>] Clicking outside the editor it was possible 
     107                        to paste or apply formating to the rest of the page in IE.</li> 
    104108        </ul> 
    105109        <h3> 
  • FCKeditor/trunk/editor/_source/classes/fckeditingarea.js

    r385 r423  
    224224                        // http://sourceforge.net/tracker/index.php?func=detail&aid=1567060&group_id=75348&atid=543653 
    225225                        if ( FCKBrowserInfo.IsIE && this.Document.hasFocus() ) 
     226                        { 
     227                                // In IE it can happen that the document is in theory focused but the active element is outside it 
     228                                this.Document.body.setActive() ; 
    226229                                return ; 
     230                        } 
    227231 
    228232                        if ( FCKBrowserInfo.IsSafari ) 
     
    231235                        { 
    232236                                this.Window.focus() ; 
     237 
     238                                // In IE it can happen that the document is in theory focused but the active element is outside it 
     239                                if ( FCKBrowserInfo.IsIE ) 
     240                                        this.Document.body.setActive() ; 
    233241                        } 
    234242                } 
  • FCKeditor/trunk/fckconfig.js

    r418 r423  
    7575FCKConfig.ForceStrongEm = true ; 
    7676FCKConfig.GeckoUseSPAN  = false ; 
    77 FCKConfig.StartupFocus  = false ; 
     77FCKConfig.StartupFocus  = true ; 
    7878FCKConfig.ForcePasteAsPlainText = false ; 
    7979FCKConfig.AutoDetectPasteFromWord = true ;      // IE only. 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy