Changeset 2256

Show
Ignore:
Timestamp:
2008-07-22 04:38:14 (6 months ago)
Author:
martinkou
Message:

Fixed #2376 : FCK.InsertHtml() will now insert to the last selected position after the user has selected things outside of FCKeditor, in IE.

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fck_ie.js

    r2073 r2256  
    136136 
    137137        this.EditorDocument.attachEvent("ondblclick", Doc_OnDblClick ) ; 
     138 
     139        this.EditorDocument.attachEvent("onbeforedeactivate", function(){ FCKSelection.Save( true ) ; } ) ; 
    138140 
    139141        // Catch cursor selection changes. 
  • FCKeditor/trunk/editor/_source/internals/fckselection_ie.js

    r2072 r2256  
    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 ; 
  • FCKeditor/trunk/_whatsnew.html

    r2255 r2256  
    9999                        data loss bug in IE when there are @import statements in the editor's CSS files, 
    100100                        and IE's cache is set to "Check for newer versions on every visit".</li> 
     101                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2376">#2376</a>] FCK.InsertHtml() 
     102                        will now insert to the last selected position after the user has selected things outside 
     103                        of FCKeditor, in IE.</li> 
    101104        </ul> 
    102105        <p>