From 3d17e142c45f0970ce9cbb99ad8dd1c3c1c177b6 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 27 Jun 2016 15:18:49 +0200 Subject: [PATCH] Added redactor/codemirror in box add form --- wcfsetup/install/files/acp/templates/__boxAddContent.tpl | 8 ++++++++ wcfsetup/install/files/acp/templates/boxAdd.tpl | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 wcfsetup/install/files/acp/templates/__boxAddContent.tpl 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'} -- 2.20.1