Sync wysiwyg.tpl
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 29 Nov 2018 14:54:23 +0000 (15:54 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 29 Nov 2018 14:54:23 +0000 (15:54 +0100)
see #2752

wcfsetup/install/files/acp/templates/wysiwyg.tpl

index a39c2ddc86f9cfb9623daeeb92e701951857ff7f..c944243280e9075623da294ab928e480abda8d9c 100644 (file)
@@ -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}',
                        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'}