},
_insert: function(data) {
+ if (this.WoltLabSource.isActive()) {
+ return;
+ }
+
var attachmentId = data.attachmentId;
this.buffer.set();
},
_insert: function(data) {
+ if (this.WoltLabSource.isActive()) {
+ return;
+ }
+
this.buffer.set();
var id = 'wscSmiley_' + this.uuid + '_' + _index++;
data.valid = false;
}
}).bind(this));
+ },
+
+ isActive: function () {
+ return (this.$editor[0].style.getPropertyValue('display') === 'none');
}
};
};
* @protected
*/
_insertQuote: function (data) {
+ if (this._editor.WoltLabSource.isActive()) {
+ return;
+ }
+
EventHandler.fire('com.woltlab.wcf.redactor2', 'showEditor');
var editor = this._editor.core.editor()[0];