Project

General

Profile

Bug #22673 » rtehtmlarea_bugfix_14413_trunk_follow_up.patch

Administrator Admin, 2010-05-20 05:20

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
// Nullify EXTJS private handlers
Ext.each(this.keyMap.bindings, function (binding, index) {
this.keyMap.bindings[index] = null;
});
}, this);
this.keyMap.handleKeyDown = null;
Ext.each(this.hotKeyMap.bindings, function (binding, index) {
this.hotKeyMap.bindings[index] = null;
});
}, this);
this.hotKeyMap.handleKeyDown = null;
this.keyMap.disable();
this.hotKeyMap.disable();
......
// If the textarea is inside a form, on reset, re-initialize the HTMLArea content and update the toolbar
var form = this.textArea.dom.form;
if (form) {
if (Ext.isFunction(form.onsubmit)) {
if (Ext.isFunction(form.onreset)) {
if (typeof(form.htmlAreaPreviousOnReset) == 'undefined') {
form.htmlAreaPreviousOnReset = [];
}
......
fn: this.onFrameworkResize
},
beforedestroy: {
fn: this.onBeforeDestroy
fn: this.onBeforeDestroy,
single: true
}
});
},
......
Ext.iterate(this.plugins, function (pluginId) {
this.unRegisterPlugin(pluginId);
}, this);
this.purgeListeners()
this.purgeListeners();
// Cleaning references to DOM in order to avoid IE memory leaks
this.wizards.dom = null;
this.textArea.parent().parent().dom = null;
this.textArea.parent().dom = null;
this.textArea.dom = null;;
this.textArea.dom = null;
RTEarea[this.editorId].editor = null;
}
});
(2-2/2)