From 6bcd7f245057493ef09b389acd3bfcc7b300f0d5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 15 Jan 2015 15:38:00 +0100 Subject: [PATCH] Passing reference to Redactor object in BBCode-button event --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js index 37813102a7..77eb7c6bc8 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js @@ -145,7 +145,8 @@ RedactorPlugins.wbutton = function() { var $bbcode = this._bbcodes[buttonName].name; var $eventData = { buttonName: buttonName, - cancel: false + cancel: false, + redactor: this }; WCF.System.Event.fireEvent('com.woltlab.wcf.redactor', 'insertBBCode_' + $bbcode + '_' + this.$textarea.wcfIdentify(), $eventData); -- 2.20.1