From 245cea5d3e216d7f2fd174c1208768f8dcb0ad3b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 13 May 2015 16:58:13 +0200 Subject: [PATCH] Fixed table plugin being always loaded --- com.woltlab.wcf/templates/wysiwyg.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = '


'; -- 2.20.1