register: function(callbackName, callback) {
require(['EventHandler'], (function(EventHandler) {
+ var uuid = this.uuid;
+
if (this._callbacks.indexOf(callbackName) === -1) {
this.opts.callbacks[callbackName] = (function (event) {
var data = {
redactor: this
};
- EventHandler.fire('com.woltlab.wcf.redactor2', callbackName + '_' + this.WoltLabEvent._elementId, data);
+ EventHandler.fire('com.woltlab.wcf.redactor2', callbackName + '_' + uuid + '_' + this.WoltLabEvent._elementId, data);
return (data.cancel === false);
}).bind(this);
}
require(['EventHandler'], (function(EventHandler) {
- EventHandler.add('com.woltlab.wcf.redactor2', callbackName + '_' + this.WoltLabEvent._elementId, callback);
+ EventHandler.add('com.woltlab.wcf.redactor2', callbackName + '_' + uuid + '_' + this.WoltLabEvent._elementId, callback);
}).bind(this));
}).bind(this));
}