Ticket #933 (closed Bug: fixed)

Opened 3 years ago

Last modified 3 years ago

FCKDomRange.MoveToSelection() crashes in Internet Explorer when editor frame has never been selected

Reported by: martinkou Owned by: martinkou
Priority: Normal Milestone:
Component: General Version: SVN (FCKeditor)
Keywords: Cc:

Description

Reproduction Procedure:
1. Open one of the _samples/html/sample01.html sample in Internet Explorer 6. Do not click on the editor widget.
2. Type in the address bar, the following:

javascript: void(window.r = new frames[0].FCKDomRange(frames[0].frames[0]));
javascript: void(window.r.MoveToSelection());

3. A JavaScript error is generated.

Why is this important?
The same error does not happen in Firefox or Opera. This error makes it necessary to write an extra try... catch... statement in code that deals with selection by DOM Ranges. Moreover, when the MoveToSelection() operation crashes, it might insert trash HTML code to parent document containing the FCKeditor widget, which is nasty.

Change History

Changed 3 years ago by martinkou

This bug was discovered while I was working on #802, it seems to be simple to solve, and it would be required to make FCKeditor's replace operation behave more like MS Word's. So I'll fix this before fixing #802.

Changed 3 years ago by martinkou

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

Fixed with [407].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.