woltlab: {
allowImages: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')}true{else}false{/if},
attachments: (elDataBool(element, 'disable-attachments') === false),
+ attachmentThumbnailWidth: {@ATTACHMENT_THUMBNAIL_WIDTH},
autosave: autosave,
allowedInlineStyles: allowedInlineStyles,
buttons: buttonOptions,
var images = this._getImageAttachments();
var attachmentId = data.attributes[0] || 0;
if (images.hasOwnProperty(attachmentId)) {
+ var thumbnailWidth = ~~$('#' + this._editorId).data('redactor').opts.woltlab.attachmentThumbnailWidth;
+
var thumbnail = data.attributes[2];
- thumbnail = (thumbnail === true || thumbnail === 'true' || ~~thumbnail > 0);
+ thumbnail = (thumbnail === true || thumbnail === 'true' || ~~thumbnail <= thumbnailWidth);
var image = elCreate('img');
image.className = 'woltlabAttachment';