Ticket #2376 (closed Bug: fixed)

Opened 5 months ago

Last modified 4 months ago

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
Keywords: Confirmed IE Review+ Cc:

Description

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

2376.patch (1.8 KB) - added by martinkou 5 months ago.

Change History

Changed 5 months ago by martinkou

Changed 5 months ago by martinkou

  • keywords Review? added
  • status changed from new to assigned

Changed 5 months ago by fredck

  • keywords Review+ added; Review? removed

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

Changed 5 months ago by fredck

  • milestone set to FCKeditor 2.6.3

Changed 5 months ago by martinkou

  • status changed from assigned to closed
  • resolution set to fixed

Fixed with [2256].

Click here for more info about our SVN system.

Changed 4 months 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.