#6577 closed Bug (fixed)
selection error when editor element is hidden
Reported by: | David Wipperfurth | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.1 |
Component: | General | Version: | 3.0 |
Keywords: | Firefox | Cc: |
Description
Low Priority
Firebug Error: "q is null" stack trace: "createBookmarks()ckeditor.js (line 119) q(A=Object { _=Object, elementMode=1, more...})ckeditor.js (line 89) isArray()ckeditor.js (line 9) [Break On This Error] A.setStart(B.$,z.startOffset);A.setEnd...u=s&&s[1];if(t)q.attributes.width=t;" (ah the joys of compiled code)
This error occurs after all my code has finished running. I'm guessing from farther down in the onLoad queue?
It has something to do with the offending ckeditor being attached to a completely empty and hidden(as in a parent tag has the 'display:none' property set) textarea. If I put some initial text inside the textarea tag, OR make the textarea visible the error doesn't occur.
My application is complex, and I haven't been able to reproduce the error yet in a simplified form yet. When/if I can, I'll post it.
This error only occurs in FireFox and SeaMonkey. It does not occur in Safari, Opera, IE, or Chrome. All tested on Windows XP with fairly recent versions.
Attachments (1)
Change History (8)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Keywords: | Firefox added; mozilla load bookmark removed |
---|
Changed 14 years ago by
Attachment: | 6577_firefox_bug.html added |
---|
comment:4 Changed 14 years ago by
Status: | new → confirmed |
---|---|
Summary: | loading / bookmarking error in mozilla browsers? → selection error when editor element is hidden |
Version: | 3.4 → 3.0 |
comment:5 Changed 14 years ago by
Milestone: | → CKEditor 3.5.1 |
---|
associated forum thread http://cksource.com/forums/viewtopic.php?f=6&t=20572.
uncompressed error: Firebug Error: selection is null Stack Trace: (?)()plugin.js (line 1331) activateEditing(editor=Object { _=Object, elementMode=1, more...})plugin.js (line 258) (?)()tools.js (line 455) [Break On This Error] selection.removeAllRanges();
basically "var selection = this.document.getSelection().getNative();" fails and is not handled.