return (data.cancel === false);
};
+
+ // provide editor message on callback
+ EventHandler.add('com.woltlab.wcf.redactor2', 'getText_' + elementId, (function(data) {
+ data.message = this.code.get();
+ }).bind(this));
},
register: function(callbackName, callback) {
};
var id = this._getEditorId();
- EventHandler.fire('com.woltlab.wcf.redactor', 'getText_' + id, parameters.data);
+
+ EventHandler.fire('com.woltlab.wcf.redactor2', 'getText_' + id, parameters.data);
EventHandler.fire('com.woltlab.wcf.messageOptionsInline', 'submit_' + id, parameters);
Ajax.api(this, {