Ticket #1990 (closed Bug: fixed)
InsertHtml() ignores selection from floating dialog in IE7
| Reported by: | MarkWB | Owned by: | fredck |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6 |
| Component: | UI : Dialogs | Version: | SVN (FCKeditor) |
| Keywords: | Confirmed Review+ | Cc: |
Description
"FCK.InsertHtml()" function ignores selection/position when executed from a floating dialog instanciated with "FCKDialogCommand", and the web browser is IE7. The inserted text always gets inserted at the beginning. This does NOT happen when using Firefox 2.0.0.12. Furthermore, it does not happen if executed from an IE popup using window.showModalDialog().
Attached is a very simple plugin called 'insertbug' that adds the command 'InsertText' for demonstrating the problem. Firefox has no problem with selected text getting replaced or inserted at the insertion carot position. With IE, "Inserted Text" is always inserted at the beginning.
Tested 2.6.beta and nightly build 18335 (03/09/2008).
