Opened 14 years ago
Closed 14 years ago
#2011 closed defect (duplicate)
Editor 2 destroy method -- does not remove iframe
Reported by: | Jonathan Bond-Caron | Owned by: | liucougar |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Editor | Version: | 0.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The following calls do *not* work as expected:
var e = dojo.byId("ressource_text"); var w = dojo.widget.createWidget("Editor2",
{ shareToolbar: false,
widgetId: "kb_editor", toolbarAlwaysVisible: true, focusOnLoad: true
}, e);
dojo.lang.forEach(dojo.widget.byType('Editor2'), function(ed){ ed.destroy(); });
Destroying the Editor will not destroy the iframe DOM node. So a simple problem is trying to create the Editor2 again, you have nested iframes.
Fix is likely in RichText?.js, there's only the following in the close() function:
if (this.iframe) {
FIXME: should keep iframe around for later re-use
delete this.iframe;
}
The iframe DOM node is *not* removed. Can potentially be a leak issue.
Change History (2)
comment:1 Changed 14 years ago by
Component: | Widgets → Editor |
---|---|
Milestone: | → 0.5 |
Owner: | changed from bill to liucougar |
comment:2 Changed 14 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
dup of #2155