From 5ee2ea6a237ca01872e0c19c5401edc33c29de26 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 8 Jul 2011 12:22:51 -0400 Subject: [PATCH] [BUGFIX] htmlArea RTE: Remove reference to deleted object HTMLArea.Plugin refers to deleted HTMLArea.Dialog. Change-Id: Ic16f1a5e953d84bf083972e3a3d60767bf8f10e4 Fixes: #27997 Related: #25009 Releases: 4.6 Reviewed-on: http://review.typo3.org/3155 Reviewed-by: Stanislas Rolland Tested-by: Stanislas Rolland --- typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js b/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js index 8e6c73b041ee..51a9e513cf22 100644 --- a/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js +++ b/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js @@ -4348,7 +4348,7 @@ HTMLArea.Plugin = Ext.extend(HTMLArea.Plugin, { * @return boolean */ onMode: function(mode) { - if (mode === "textmode" && this.dialog && HTMLArea.Dialog[this.name] == this.dialog && !(this.dialog.buttonId && this.editorConfiguration.buttons[this.dialog.buttonId] && this.editorConfiguration.buttons[this.dialog.buttonId].textMode)) { + if (mode === "textmode" && this.dialog && !(this.dialog.buttonId && this.editorConfiguration.buttons[this.dialog.buttonId] && this.editorConfiguration.buttons[this.dialog.buttonId].textMode)) { this.dialog.close(); } }, -- 2.20.1