From: Tim Düsterhus Date: Thu, 29 Nov 2018 14:54:23 +0000 (+0100) Subject: Sync wysiwyg.tpl X-Git-Tag: 5.2.0_Alpha_1~420^2~5^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f809f77a159bb3cc940c2ae288002331cf067a05;p=GitHub%2FWoltLab%2FWCF.git Sync wysiwyg.tpl see #2752 --- diff --git a/wcfsetup/install/files/acp/templates/wysiwyg.tpl b/wcfsetup/install/files/acp/templates/wysiwyg.tpl index a39c2ddc86..c944243280 100644 --- a/wcfsetup/install/files/acp/templates/wysiwyg.tpl +++ b/wcfsetup/install/files/acp/templates/wysiwyg.tpl @@ -70,6 +70,7 @@ 'wcf.editor.code.highlighter': '{lang}wcf.editor.code.highlighter{/lang}', 'wcf.editor.code.highlighter.description': '{lang}wcf.editor.code.highlighter.description{/lang}', 'wcf.editor.code.highlighter.detect': '{lang}wcf.editor.code.highlighter.detect{/lang}', + 'wcf.editor.code.highlighter.plain': '{lang}wcf.editor.code.highlighter.plain{/lang}', 'wcf.editor.code.line': '{lang}wcf.editor.code.line{/lang}', 'wcf.editor.code.line.description': '{lang}wcf.editor.code.line.description{/lang}', 'wcf.editor.code.title': '{lang __literal=true}wcf.editor.code.title{/lang}', @@ -119,7 +120,7 @@ var allowedInlineStyles = [], buttons = [], buttonMobile = [], buttonOptions = [], customButtons = []; {include file='wysiwygToolbar'} - var highlighters = { {implode from=$__wcf->getBBCodeHandler()->getHighlighters() item=__highlighter}'{$__highlighter}': '{lang}wcf.bbcode.code.{@$__highlighter}.title{/lang}'{/implode} }; + var highlighters = '{@MESSAGE_PUBLIC_HIGHLIGHTERS|encodeJS}'.split(/\n/).filter(function (item) { return item != ''; }); {include file='mediaJavaScript'}