Opened 12 years ago

Closed 12 years ago

#1075 closed Bug (fixed)

If we build an editor in a hidden container (i.e.: div) an error occurs in fck_gecko.js (line 206 rv:666)

Reported by: Bossaer Olivier Owned by:
Priority: Normal Milestone:
Component: General Version: SVN (FCKeditor) - Retired
Keywords: Cc:

Description

I load an editor on the fly (JS) when a user press "edit" button, the editor is loaded in a hidden div; when fckEditor is fully loaded I simply show it. It works fine, but with my last subversion update I've got a strange error with fck_gecko.js
sel has no properties (fck_gecko.js line 206)

if (sel.rangeCount < 1 )return;

This bug comes only if my div is invisible, to work arround I've modified the if statement in this way:
if (!sel || sel.rangeCount < 1 )return;
All looks fine now, but I don't know the real reason why this error come now and not in previous version (rv: 650 did not have this issue).

Olivier

Attachments (1)

test.htm (796 bytes) - added by Bossaer Olivier 12 years ago.
Test case

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by Bossaer Olivier

Attachment: test.htm added

Test case

comment:1 Changed 12 years ago by Martin Kou

Resolution: fixed
Status: newclosed

Fixed with [671].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy