Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1748 closed defect (fixed)

Javascript error when RichText (using a textarea) widget is destroyed on firefox

Reported by: [email protected] Owned by: liucougar
Priority: high Milestone:
Component: Editor Version: 0.4
Keywords: Cc:
Blocked By: Blocking:


When using a textarea to define an Editor2 widget, a javascript error is thrown on firefox when the rich text widget is destroyed (line 1584 - this.domNode.parentNode has no properties) :



position = ""; left = top = ""; if({

overflow = this.overflow; this.overflow = null;



this.domNode.parentNode.removeChild(this.domNode); this.domNode = this.textarea;

Attachments (1)

test.html (847 bytes) - added by [email protected] 15 years ago.
test case for 1748

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 years ago by liucougar

please provide a test html file

Changed 15 years ago by [email protected]

Attachment: test.html added

test case for 1748

comment:2 Changed 15 years ago by [email protected]

Place test.html in tests/widget/Editor. Page should display a Editor2 widget in a content pane. Click the test button, which should replace the content pane with html. In firefox (1.5), the editor will be replaced by a text area, and a javascript error will occur when the editor tries to remove the dom node. Clicking test again will work.

comment:3 Changed 15 years ago by liucougar

Resolution: fixed
Status: newclosed

(In [6346]) fixes #1748: Javascript error when RichText? (using a textarea) widget is destroyed on firefox

comment:4 Changed 15 years ago by (none)

Milestone: 0.4.1

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.