Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2376 closed Bug (fixed)

FCKeditor should remember the last selection position when it loses focus in IE.

Reported by: Martin Kou Owned by: Martin Kou
Priority: Normal Milestone: FCKeditor 2.6.3
Component: General Version: SVN (FCKeditor) - Retired
Keywords: Confirmed IE Review+ Cc:


IE has a long standing bug in which it allows only a single selection position to exist within a window, no matter how many iframes and different pages are opened inside. This causes an annoying problem with FCK.InsertHtml():

  1. Open sample01.html in IE.
  2. Put the caret or selection in the middle of the text.
  3. Click on somewhere outside of the FCKeditor widget.
  4. Type in the address bar:
    javascript: alert(frames[0].FCK.InsertHtml('abcd'));
  5. The "abcd" is inserted at the beginning of the document, which isn't right.

It should be possible to use the onbeforedeactivate event to save the selection position before FCKeditor is defocused.

Attachments (1)

2376.patch (1.8 KB) - added by Martin Kou 16 years ago.

Download all attachments as: .zip

Change History (6)

Changed 16 years ago by Martin Kou

Attachment: 2376.patch added

comment:1 Changed 16 years ago by Martin Kou

Keywords: Review? added
Status: newassigned

comment:2 Changed 16 years ago by Frederico Caldeira Knabben

Keywords: Review+ added; Review? removed

That's ok for now. We should have a better solution for V3.

comment:3 Changed 16 years ago by Frederico Caldeira Knabben

Milestone: FCKeditor 2.6.3

comment:4 Changed 16 years ago by Martin Kou

Resolution: fixed
Status: assignedclosed

Fixed with [2256].

Click here for more info about our SVN system.

comment:5 Changed 16 years ago by Mathias-S

The fix for this bug causes another, more prominent bug described in #2426

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy