Ticket #2376: 2376.patch

File 2376.patch, 1.8 KB (added by Martin Kou, 16 years ago)
  • _whatsnew.html

     
    8282                        in the Paste dialog.</li>
    8383                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1907">#1907</a>] Fixed sporadic
    8484                        "FCKeditorAPI is not defined" errors in Firefox 3.</li>
     85                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2376">#2376</a>] FCK.InsertHtml()
     86                        will now insert to the last selected position after the user has selected things outside
     87                        of FCKeditor, in IE.</li>
    8588        </ul>
    8689        <p>
    8790                <a href="_whatsnew_history.html">See previous versions history</a></p>
  • editor/_source/internals/fck_ie.js

     
    136136
    137137        this.EditorDocument.attachEvent("ondblclick", Doc_OnDblClick ) ;
    138138
     139        this.EditorDocument.attachEvent("onbeforedeactivate", function(){ FCKSelection.Save( true ) ; } ) ;
     140
    139141        // Catch cursor selection changes.
    140142        this.EditorDocument.attachEvent("onselectionchange", Doc_OnSelectionChange ) ;
    141143
  • editor/_source/internals/fckselection_ie.js

     
    209209        return FCK.EditorDocument.selection ;
    210210}
    211211
    212 FCKSelection.Save = function()
     212FCKSelection.Save = function( noFocus )
    213213{
    214214        // Ensures the editor has the selection focus. (#1801)
    215         FCK.Focus() ;
     215        if ( !noFocus )
     216                FCK.Focus() ;
    216217
    217218        var editorDocument = FCK.EditorDocument ;
    218219
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy