Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2376 closed Bug (fixed)

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

Reported by: martinkou Owned by: martinkou
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 martinkou 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by martinkou

comment:1 Changed 8 years ago by martinkou

  • Keywords Review? added
  • Status changed from new to assigned

comment:2 Changed 8 years ago by fredck

  • Keywords Review+ added; Review? removed

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

comment:3 Changed 8 years ago by fredck

  • Milestone set to FCKeditor 2.6.3

comment:4 Changed 8 years ago by martinkou

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with [2256].

Click here for more info about our SVN system.

comment:5 Changed 8 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 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy