#1748 closed defect (fixed)
Javascript error when RichText (using a textarea) widget is destroyed on firefox
Reported by: | 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)
Change History (5)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
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 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
please provide a test html file