Ticket #1764: 1764.patch

File 1764.patch, 1.6 KB (added by martinkou, 23 months ago)
  • _whatsnew.html

     
    5353                        in the Find/Replace dialog.</li> 
    5454                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2124">#2124</a>] PHP file brower: fixed 
    5555                        issue with resolving paths on Windows servers with PHP 5.2.4/5.2.5.</li> 
    56                 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2124">#2059</a>] Fixed the error in the 
     56                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2059">#2059</a>] Fixed the error in the 
    5757                        toolbar name in fckeditor.py.</li> 
     58                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1764">#1764</a>] FCKeditor will no longer 
     59                        catch focus in IE on load when StartupFocus is false and the initial content is empty.</li> 
    5860        </ul> 
    5961        <h3> 
    6062                Version 2.6</h3> 
  • editor/_source/internals/fck.js

     
    889889                        if ( FCK.EditorDocument.body.childNodes.length == 1 
    890890                                        && FCK.EditorDocument.body.firstChild == paddingNode ) 
    891891                        { 
     892                                /* 
     893                                 * Bug #1764: Don't move the selection if the 
     894                                 * current selection isn't in the editor 
     895                                 * document. 
     896                                 */ 
     897                                if ( FCKSelection._GetSelectionDocument( FCK.EditorDocument.selection ) != FCK.EditorDocument ) 
     898                                        return ; 
     899 
    892900                                var range = FCK.EditorDocument.body.createTextRange() ; 
    893901                                var clearContents = false ; 
    894902                                if ( !paddingNode.childNodes.firstChild )