*/
insertAttachment: function(attachmentID) {
attachmentID = parseInt(attachmentID);
- var $attachmentUrl = this.getOption('woltlab.attachmentUrl');
+ var $attachmentUrl = this.wutil.getOption('woltlab.attachmentUrl');
var $bbcode = '[attach=' + attachmentID + '][/attach]';
var $imageAttachmentIDs = this.wbbcode._getImageAttachmentIDs();
if ($attachmentUrl && WCF.inArray(attachmentID, $imageAttachmentIDs)) {
- this.insertDynamic(
+ this.wutil.insertDynamic(
'<img src="' + $attachmentUrl.replace(/987654321/, attachmentID) + '" class="redactorEmbeddedAttachment" data-attachment-id="' + attachmentID + '" />',
$bbcode
);
}
else {
- this.insertDynamic($bbcode);
+ this.wutil.insertDynamic($bbcode);
}
},
var $attachmentID = (event === null) ? attachmentID : $(event.currentTarget).data('objectID');
if ($.browser.redactor) {
- $('#' + this._wysiwygContainerID).redactor('insertAttachment', $attachmentID);
+ $('#' + this._wysiwygContainerID).redactor('wbbcode.insertAttachment', $attachmentID);
}
},