[BUGFIX] JS error on initialization of RTE extension plugin
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 2 Nov 2011 00:22:15 +0000 (20:22 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 2 Nov 2011 00:24:36 +0000 (01:24 +0100)
Custom plugin from user RTE extension using reference to this.base() will not initialize correctly in TYPO3 4.6.

Change-Id: I059a93f74ad189833ddd93d14654c851241a1a2a
Resolves: #31498
Releases: 4.6, 4.7
Reviewed-on: http://review.typo3.org/6497
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index 91229f3..dcd2351 100644 (file)
@@ -4187,8 +4187,8 @@ HTMLArea.Plugin = Ext.extend(HTMLArea.Plugin, {
         * Note: this.base will exclusively refer to the HTMLArea.Plugin class constructor
         */
        base: function (editor, pluginName) {
-               HTMLArea.appendToLog(this.editor.editorId, 'HTMLArea.' + this.name, 'base', 'Deprecated use of base function. Use Ext superclass reference instead.', 'warn');
-               HTMLArea.Plugin.prototype.constructor.call(this, this.editor, this.name);
+               HTMLArea.appendToLog(editor.editorId, 'HTMLArea.' + pluginName, 'base', 'Deprecated use of base function. Use Ext superclass reference instead.', 'warn');
+               HTMLArea.Plugin.prototype.constructor.call(this, editor, pluginName);
        },
        /**
         * Registers the plugin "About" information