From: Alexander Ebert Date: Mon, 9 Jan 2017 10:46:57 +0000 (+0100) Subject: Disabled editor components were being loaded X-Git-Tag: 3.0.0~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=26475eb31023e729d4827168a578efe4d680b878;p=GitHub%2FWoltLab%2FWCF.git Disabled editor components were being loaded --- 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',