From: Tim Düsterhus Date: Thu, 29 Nov 2018 14:53:35 +0000 (+0100) Subject: Fix highlighter selection of MESSAGE_PUBLIC_HIGHLIGHTERS is empty X-Git-Tag: 5.2.0_Alpha_1~420^2~5^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0152413e1e75fcd137443d78fad59067d25cb5a3;p=GitHub%2FWoltLab%2FWCF.git Fix highlighter selection of MESSAGE_PUBLIC_HIGHLIGHTERS is empty see #2752 --- diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index e71298456b..c944243280 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -120,7 +120,7 @@ var allowedInlineStyles = [], buttons = [], buttonMobile = [], buttonOptions = [], customButtons = []; {include file='wysiwygToolbar'} - var highlighters = '{@MESSAGE_PUBLIC_HIGHLIGHTERS|encodeJS}'.split(/\n/); + var highlighters = '{@MESSAGE_PUBLIC_HIGHLIGHTERS|encodeJS}'.split(/\n/).filter(function (item) { return item != ''; }); {include file='mediaJavaScript'}