Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1748 closed defect (fixed)

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

Reported by: gbettencourt@… Owned by: liucougar
Priority: high Milestone:
Component: Editor Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

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) :

if(this.textarea){

with(this.textarea.style){

position = ""; left = top = ""; if(dojo.render.html.ie){

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

}

}

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

Attachments (1)

test.html (847 bytes) - added by gbettencourt@… 13 years ago.
test case for 1748

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 years ago by liucougar

please provide a test html file

Changed 13 years ago by gbettencourt@…

Attachment: test.html added

test case for 1748

comment:2 Changed 13 years ago by gbettencourt@…

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 13 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 13 years ago by (none)

Milestone: 0.4.1

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.