<dl class="wide{if $errorField == 'text'} formError{/if}">
<dt><label for="text">{lang}wcf.user.signature{/lang}</label></dt>
<dd>
- <textarea id="text" class="wysiwygTextarea" name="text" rows="20" cols="40" data-disable-attachments="true">{$text}</textarea>
+ <textarea id="text" class="wysiwygTextarea" name="text" rows="20" cols="40"
+ data-disable-attachments="true"
+ data-disable-media="true"
+ >{$text}</textarea>
{if $errorField == 'text'}
<small class="innerError">
{if $errorType == 'empty'}
element.value = autosave.getInitialValue();
}
+ var disableMedia = elDataBool(element, 'disable-media');
+
var config = {
buttons: buttons,
clipboardImageUpload: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')}true{else}false{/if},
// media
{if $__wcf->session->getPermission('admin.content.cms.canUseMedia')}
- config.plugins.push('WoltLabMedia');
+ if (disableMedia) {
+ var index = config.buttons.indexOf('woltlabMedia');
+ if (index !== -1) {
+ config.buttons.splice(index, 1);
+ }
+ }
+ else {
+ config.plugins.push('WoltLabMedia');
+ }
{/if}
{if $__redactorConfig|isset}{@$__redactorConfig}{/if}
element.value = autosave.getInitialValue();
}
+ var disableMedia = elDataBool(element, 'disable-media');
+
var config = {
buttons: buttons,
clipboardImageUpload: {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')}true{else}false{/if},
// media
{if $__wcf->session->getPermission('admin.content.cms.canUseMedia')}
- config.plugins.push('WoltLabMedia');
+ if (disableMedia) {
+ var index = config.buttons.indexOf('woltlabMedia');
+ if (index !== -1) {
+ config.buttons.splice(index, 1);
+ }
+ }
+ else {
+ config.plugins.push('WoltLabMedia');
+ }
{/if}
{if $__redactorConfig|isset}{@$__redactorConfig}{/if}