{if $__wcf->getBBCodeHandler()->isAvailableBBCode('table')}
$other.push('Table');
{/if}
-{if MODULE_SMILEY && $__wcf->getSession()->getPermission($permissionCanUseSmilies) && $smileyCategories|count}
+{if MODULE_SMILEY && (!$permissionCanUseSmilies|isset || $__wcf->getSession()->getPermission($permissionCanUseSmilies)) && defaultSmilies|count}
$other.push('Smiley');
{/if}
* @category Community Framework
*/
class BBCodeHandler extends SingletonFactory {
+ /**
+ * list of allowed BBCode tags in WYSIWYG editor
+ * @var array
+ */
+ protected $allowedBBCodes = array();
+
/**
* list of BBCodes displayed as buttons
* @var array<wcf\data\bbcode\BBCode>
* @return array<wcf\data\bbcode\BBCode>
*/
public function getButtonBBCodes() {
+ // todo: check if BBCodes are available
return $this->buttonBBCodes;
}