From: Marcel Werk Date: Mon, 27 Jun 2016 13:18:49 +0000 (+0200) Subject: Added redactor/codemirror in box add form X-Git-Tag: 3.0.0_Beta_1~1343^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d17e142c45f0970ce9cbb99ad8dd1c3c1c177b6;p=GitHub%2FWoltLab%2FWCF.git Added redactor/codemirror in box add form --- diff --git a/wcfsetup/install/files/acp/templates/__boxAddContent.tpl b/wcfsetup/install/files/acp/templates/__boxAddContent.tpl new file mode 100644 index 0000000000..9813c547ed --- /dev/null +++ b/wcfsetup/install/files/acp/templates/__boxAddContent.tpl @@ -0,0 +1,8 @@ + +{if $boxType == 'text'} + {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} +{/if} diff --git a/wcfsetup/install/files/acp/templates/boxAdd.tpl b/wcfsetup/install/files/acp/templates/boxAdd.tpl index 88081b0d7d..81b3ff535c 100644 --- a/wcfsetup/install/files/acp/templates/boxAdd.tpl +++ b/wcfsetup/install/files/acp/templates/boxAdd.tpl @@ -305,7 +305,8 @@
- + {include file='__boxAddContent' languageID=0} + {if $errorField == 'content'} {if $errorType == 'empty'} @@ -379,7 +380,8 @@ languageID} class="formError"{/if}>
- + {include file='__boxAddContent' languageID=$availableLanguage->languageID} + {if $errorField == 'content'|concat:$availableLanguage->languageID} {if $errorType == 'empty'}