Fixed direction in codemirrors
authorMarcel Werk <burntime@woltlab.com>
Fri, 16 Sep 2016 14:27:49 +0000 (16:27 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 16 Sep 2016 14:30:19 +0000 (16:30 +0200)
wcfsetup/install/files/acp/templates/__boxAddContent.tpl
wcfsetup/install/files/acp/templates/__pageAddContent.tpl
wcfsetup/install/files/acp/templates/styleAdd.tpl
wcfsetup/install/files/acp/templates/templateAdd.tpl

index bbb9e8c7fc71adc94c5c274c9940042a4f11c7b5..c2e60887e53e0c0244880b999a78472714919a61 100644 (file)
@@ -1,12 +1,21 @@
-<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}
index b16b81271ef727ccc24d4231d07ab99daf7f84b5..6f3fe335d09a9397ff55c2f308ac39f123325789 100644 (file)
        </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}
index 9a00f80eac3cde8944d7d0397dd96ef05302d4ef..12d152aed36accea98c8f548f8d22e044026f983 100644 (file)
                                                <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}
index fb2ba64cbfa3d1358180245751ea303023c1bb65..c79ea5bdc0573b89173a30a1fb4c3daaec8191f2 100644 (file)
@@ -58,7 +58,7 @@
                        
                        <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>