From 26475eb31023e729d4827168a578efe4d680b878 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 9 Jan 2017 11:46:57 +0100 Subject: [PATCH] Disabled editor components were being loaded --- com.woltlab.wcf/templates/wysiwyg.tpl | 10 +++++----- wcfsetup/install/files/acp/templates/wysiwyg.tpl | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index 5b91b76e1b..c0f187b7ec 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -194,21 +194,21 @@ 'WoltLabCaret', 'WoltLabClean', 'WoltLabCode', - 'WoltLabColor', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('color')}'WoltLabColor',{/if} 'WoltLabDragAndDrop', 'WoltLabDropdown', - 'WoltLabFont', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('font')}'WoltLabFont',{/if} 'WoltLabFullscreen', - 'WoltLabImage', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')}'WoltLabImage',{/if} 'WoltLabInlineCode', 'WoltLabInsert', - 'WoltLabLink', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('url')}'WoltLabLink',{/if} 'WoltLabModal', 'WoltLabObserve', 'WoltLabPaste', 'WoltLabQuote', 'WoltLabReply', - 'WoltLabSize', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('size')}'WoltLabSize',{/if} 'WoltLabSmiley', 'WoltLabSource', 'WoltLabSpoiler', diff --git a/wcfsetup/install/files/acp/templates/wysiwyg.tpl b/wcfsetup/install/files/acp/templates/wysiwyg.tpl index 5b91b76e1b..c0f187b7ec 100644 --- a/wcfsetup/install/files/acp/templates/wysiwyg.tpl +++ b/wcfsetup/install/files/acp/templates/wysiwyg.tpl @@ -194,21 +194,21 @@ 'WoltLabCaret', 'WoltLabClean', 'WoltLabCode', - 'WoltLabColor', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('color')}'WoltLabColor',{/if} 'WoltLabDragAndDrop', 'WoltLabDropdown', - 'WoltLabFont', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('font')}'WoltLabFont',{/if} 'WoltLabFullscreen', - 'WoltLabImage', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')}'WoltLabImage',{/if} 'WoltLabInlineCode', 'WoltLabInsert', - 'WoltLabLink', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('url')}'WoltLabLink',{/if} 'WoltLabModal', 'WoltLabObserve', 'WoltLabPaste', 'WoltLabQuote', 'WoltLabReply', - 'WoltLabSize', + {if $__wcf->getBBCodeHandler()->isAvailableBBCode('size')}'WoltLabSize',{/if} 'WoltLabSmiley', 'WoltLabSource', 'WoltLabSpoiler', -- 2.20.1