From: Alexander Ebert Date: Wed, 13 May 2015 14:58:13 +0000 (+0200) Subject: Fixed table plugin being always loaded X-Git-Tag: 2.1.4~14^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=245cea5d3e216d7f2fd174c1208768f8dcb0ad3b;p=GitHub%2FWoltLab%2FWCF.git Fixed table plugin being always loaded --- diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index 13e4297eb2..371ffbc745 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -71,7 +71,7 @@ $(function() { lang: '{@$__wcf->getLanguage()->getFixedLanguageCode()}', maxHeight: 500, minHeight: 200, - plugins: [ 'wutil', 'wmonkeypatch', 'table', 'wbutton', 'wbbcode', 'wfontcolor', 'wfontfamily', 'wfontsize' ], + plugins: [ 'wutil', 'wmonkeypatch', 'wbutton', 'wbbcode', 'wfontcolor', 'wfontfamily', 'wfontsize' ], removeEmpty: false, replaceDivs: false, source: true, @@ -90,6 +90,10 @@ $(function() { } }; + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('table')} + $config.plugins.splice(2, 0, 'table'); + {/if} + if ($.browser.iOS) { // using a zero-width space breaks iOS' detection of the start of a sentence, causing the first word to be lowercased $config.emptyHtml = '


';