-<textarea id="{$option->optionName}" name="values[{$option->optionName}]" cols="40" rows="10"{if $option->required} required{/if}>{$value}</textarea>
+<textarea id="{$option->optionName}" name="values[{$option->optionName}]" cols="40" rows="10"{if $option->required} required{/if} class="wysiwygTextarea" data-disable-attachments="true">{$value}</textarea>
{include file='wysiwyg' wysiwygSelector=$option->optionName}
<script data-relocate="true">
<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">{$text}</textarea>
+ <textarea id="text" class="wysiwygTextarea" name="text" rows="20" cols="40" data-disable-attachments="true">{$text}</textarea>
{if $errorField == 'text'}
<small class="innerError">
{if $errorType == 'empty'}
],
toolbarFixed: false,
woltlab: {
+ attachments: (elDataBool(element, 'disable-attachments') === false),
autosave: autosave,
allowedInlineStyles: allowedInlineStyles,
buttons: buttonOptions,
{if $boxType == 'text'}
<textarea name="content[{@$languageID}]" id="content{@$languageID}"
{if $boxType == 'text'}
- class="wysiwygTextarea" data-autosave="com.woltlab.wcf.box{$action|ucfirst}-{if $action == 'edit'}{@$boxID}{else}0{/if}-{@$languageID}"
+ class="wysiwygTextarea" data-disable-attachments="true" data-autosave="com.woltlab.wcf.box{$action|ucfirst}-{if $action == 'edit'}{@$boxID}{else}0{/if}-{@$languageID}"
{/if}
>{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
{include file='wysiwyg' wysiwygSelector='content'|concat:$languageID}
<div dir="ltr">
<textarea name="content[{@$languageID}]" id="content{@$languageID}"
{if $boxType == 'text'}
- class="wysiwygTextarea" data-autosave="com.woltlab.wcf.box{$action|ucfirst}-{if $action == 'edit'}{@$boxID}{else}0{/if}-{@$languageID}"
+ class="wysiwygTextarea" data-disable-attachments="true" data-autosave="com.woltlab.wcf.box{$action|ucfirst}-{if $action == 'edit'}{@$boxID}{else}0{/if}-{@$languageID}"
{/if}
>{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
</div>
{if $pageType == 'text'}
<textarea name="content[{@$languageID}]" id="{@$__pageContentID}"
{if $pageType == 'text'}
- class="wysiwygTextarea" data-autosave="com.woltlab.wcf.page{$action|ucfirst}-{if $action == 'edit'}{@$pageID}{else}0{/if}-{@$languageID}"
+ class="wysiwygTextarea" data-disable-attachments="true" data-autosave="com.woltlab.wcf.page{$action|ucfirst}-{if $action == 'edit'}{@$pageID}{else}0{/if}-{@$languageID}"
{/if}
>{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
{else}
<div dir="ltr">
<textarea name="content[{@$languageID}]" id="{@$__pageContentID}"
- {if $pageType == 'text'}
- class="wysiwygTextarea" data-autosave="com.woltlab.wcf.page{$action|ucfirst}-{if $action == 'edit'}{@$pageID}{else}0{/if}-{@$languageID}"
+ {if $pageType == 'text'}
+ class="wysiwygTextarea" data-disable-attachments="true" data-autosave="com.woltlab.wcf.page{$action|ucfirst}-{if $action == 'edit'}{@$pageID}{else}0{/if}-{@$languageID}"
{/if}
>{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
</div>
-<textarea id="{$option->optionName}" name="values[{$option->optionName}]" cols="40" rows="10">{$value}</textarea>
+<textarea id="{$option->optionName}" name="values[{$option->optionName}]" cols="40" rows="10" class="wysiwygTextarea" data-disable-attachments="true">{$value}</textarea>
{include file='wysiwyg' wysiwygSelector=$option->optionName}
<dl>
<dt><label for="signature">{lang}wcf.user.signature{/lang}</label></dt>
<dd>
- <textarea name="signature" id="signature" cols="40" rows="10">{$signature}</textarea>
+ <textarea name="signature" id="signature" cols="40" rows="10" class="wysiwygTextarea" data-disable-attachments="true">{$signature}</textarea>
{include file='wysiwyg' wysiwygSelector='signature'}
</dd>
</dl>
],
toolbarFixed: false,
woltlab: {
+ attachments: (elDataBool(element, 'disable-attachments') === false),
autosave: autosave,
allowedInlineStyles: allowedInlineStyles,
buttons: buttonOptions,
return {
init: function() {
+ if (!this.opts.woltlab.attachments) {
+ return;
+ }
+
require(['EventHandler'], (function(EventHandler) {
EventHandler.add('com.woltlab.wcf.redactor2', 'insertAttachment_' + this.$element[0].id, this.WoltLabAttachment._insert.bind(this));
EventHandler.add('com.woltlab.wcf.redactor2', 'deleteAttachment_' + this.$element[0].id, this.WoltLabAttachment._delete.bind(this));
return {
init: function() {
+ if (!this.opts.woltlab.attachments) {
+ return;
+ }
+
require(['WoltLabSuite/Core/Ui/Redactor/DragAndDrop'], (function (UiRedactorDragAndDrop) {
UiRedactorDragAndDrop.init(this);
}).bind(this));