From: Alexander Ebert Date: Thu, 15 Jan 2015 14:38:00 +0000 (+0100) Subject: Passing reference to Redactor object in BBCode-button event X-Git-Tag: 2.1.0_Beta_4~92^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6bcd7f245057493ef09b389acd3bfcc7b300f0d5;p=GitHub%2FWoltLab%2FWCF.git Passing reference to Redactor object in BBCode-button event --- 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);