#1990: InsertHtml() ignores selection from floating dialog in IE7
---------------------------+------------------------------------------------
Reporter: MarkWB | Owner: martinkou
Type: Bug | Status: assigned
Priority: Normal | Milestone: FCKeditor 2.6
Component: UI : Dialogs | Version: SVN
Resolution: | Keywords: Discussion
---------------------------+------------------------------------------------
Changes (by martinkou):
* keywords: => Discussion
Comment:
We've actually got an API added in v2.6 to deal with the problem. It is a
known problem that IE cannot keep multiple selections across iframes, and
so we've been saving the last known selection position inside the editor
iframe just before the dialog opened. You can restore the last selection
position for InsertHtml() by calling
window.parent.Selection.EnsureSelection() before InsertHtml(), which is
what we're doing in the 2.6 dialogs.
Your ticket leads to a possible improvement upon the current
implementation however - plugin developers probably don't care or don't
know about the IE bug I've mentioned and the EnsureSelection() workaround.
Maybe we should call the EnsureSelection() workaround in InsertHtml() and
other content manipulating functions in our API to make it transparent to
plugin developers.
--
Ticket URL: <https://dev.fckeditor.net/ticket/1990#comment:2>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac