-<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}"
- {/if}
->{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
{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}"
+ {/if}
+ >{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
{include file='wysiwyg' wysiwygSelector='content'|concat:$languageID}
-{elseif $boxType == 'html'}
- {include file='codemirror' codemirrorMode='htmlmixed' codemirrorSelector='#content'|concat:$languageID}
-{elseif $boxType == 'tpl'}
- {include file='codemirror' codemirrorMode='smartymixed' codemirrorSelector='#content'|concat:$languageID}
+{else}
+ <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}"
+ {/if}
+ >{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
+ </div>
+ {if $boxType == 'html'}
+ {include file='codemirror' codemirrorMode='htmlmixed' codemirrorSelector='#content'|concat:$languageID}
+ {elseif $boxType == 'tpl'}
+ {include file='codemirror' codemirrorMode='smartymixed' codemirrorSelector='#content'|concat:$languageID}
+ {/if}
{/if}
</script>
{/if}
-<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}
->{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
{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}"
+ {/if}
+ >{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
+
{capture append='__redactorJavaScript'}, '{@$__wcf->getPath()}js/3rdParty/redactor2/plugins/WoltLabPage.js?v={@LAST_UPDATE_TIME}'{/capture}
{capture append='__redactorConfig'}
buttonOptions.woltlabPage = { icon: 'fa-file-text-o', title: '{lang}wcf.editor.button.page{/lang}' };
{/capture}
{include file='wysiwyg' wysiwygSelector=$__pageContentID}
-{elseif $pageType == 'html'}
- {include file='codemirror' codemirrorMode='htmlmixed' codemirrorSelector='#content'|concat:$languageID}
-{elseif $pageType == 'tpl'}
- {include file='codemirror' codemirrorMode='smartymixed' codemirrorSelector='#content'|concat:$languageID}
+{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}
+ >{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
+ </div>
+ {if $pageType == 'html'}
+ {include file='codemirror' codemirrorMode='htmlmixed' codemirrorSelector='#content'|concat:$languageID}
+ {elseif $pageType == 'tpl'}
+ {include file='codemirror' codemirrorMode='smartymixed' codemirrorSelector='#content'|concat:$languageID}
+ {/if}
{/if}
<dl class="wide">
<dt></dt>
<dd>
- <textarea id="individualScssCustom" rows="20" cols="40" name="individualScssCustom">{$variables[individualScssCustom]}</textarea>
+ <div dir="ltr">
+ <textarea id="individualScssCustom" rows="20" cols="40" name="individualScssCustom">{$variables[individualScssCustom]}</textarea>
+ </div>
<small>{lang}wcf.acp.style.advanced.individualScss.description{/lang}</small>
</dd>
</dl>
<dl class="wide">
<dt></dt>
<dd>
- <textarea id="overrideScssCustom" rows="20" cols="40" name="overrideScssCustom">{$variables[overrideScssCustom]}</textarea>
+ <div dir="ltr">
+ <textarea id="overrideScssCustom" rows="20" cols="40" name="overrideScssCustom">{$variables[overrideScssCustom]}</textarea>
+ </div>
{if $errorField == 'overrideScssCustom'}
<small class="innerError">
{lang}wcf.acp.style.advanced.overrideScss.error{/lang}
<dl class="wide">
<dt></dt>
<dd>
- <textarea id="individualScss" rows="20" cols="40" name="individualScss">{$variables[individualScss]}</textarea>
+ <div dir="ltr">
+ <textarea id="individualScss" rows="20" cols="40" name="individualScss">{$variables[individualScss]}</textarea>
+ </div>
<small>{lang}wcf.acp.style.advanced.individualScss.description{/lang}</small>
</dd>
</dl>
<dl class="wide">
<dt></dt>
<dd>
- <textarea id="overrideScss" rows="20" cols="40" name="overrideScss">{$variables[overrideScss]}</textarea>
+ <div dir="ltr">
+ <textarea id="overrideScss" rows="20" cols="40" name="overrideScss">{$variables[overrideScss]}</textarea>
+ </div>
{if $errorField == 'overrideScss'}
<small class="innerError">
{lang}wcf.acp.style.advanced.overrideScss.error{/lang}
<dl class="wide">
<dt><label for="templateSource">{lang}wcf.acp.template.source{/lang}</label></dt>
- <dd>
+ <dd dir="ltr">
<textarea id="templateSource" name="templateSource" cols="40" rows="20">{$templateSource}</textarea>
{include file='codemirror' codemirrorMode='smarty' codemirrorSelector='#templateSource'}
</dd>