Opened 17 years ago
Closed 17 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)
Change History (2)
Changed 17 years ago by
comment:1 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with [671].
Click here for more info about our SVN system.
Test case