Index: _whatsnew.html
===================================================================
--- _whatsnew.html (revision 2213)
+++ _whatsnew.html (working copy)
@@ -82,6 +82,9 @@
in the Paste dialog.
[#1907] Fixed sporadic
"FCKeditorAPI is not defined" errors in Firefox 3.
+ [#2376] FCK.InsertHtml()
+ will now insert to the last selected position after the user has selected things outside
+ of FCKeditor, in IE.
See previous versions history
Index: editor/_source/internals/fck_ie.js
===================================================================
--- editor/_source/internals/fck_ie.js (revision 2213)
+++ editor/_source/internals/fck_ie.js (working copy)
@@ -136,6 +136,8 @@
this.EditorDocument.attachEvent("ondblclick", Doc_OnDblClick ) ;
+ this.EditorDocument.attachEvent("onbeforedeactivate", function(){ FCKSelection.Save( true ) ; } ) ;
+
// Catch cursor selection changes.
this.EditorDocument.attachEvent("onselectionchange", Doc_OnSelectionChange ) ;
Index: editor/_source/internals/fckselection_ie.js
===================================================================
--- editor/_source/internals/fckselection_ie.js (revision 2213)
+++ editor/_source/internals/fckselection_ie.js (working copy)
@@ -209,10 +209,11 @@
return FCK.EditorDocument.selection ;
}
-FCKSelection.Save = function()
+FCKSelection.Save = function( noFocus )
{
// Ensures the editor has the selection focus. (#1801)
- FCK.Focus() ;
+ if ( !noFocus )
+ FCK.Focus() ;
var editorDocument = FCK.EditorDocument ;