data-disable-attachments="true"
data-disable-media="true"
></textarea>
+
+ {* in-template call for full backwards-compatibility *}
+ {$commentList->getCommentManager()->setDisallowedBBCodes()}
+
{include file='wysiwyg'}
<div class="formSubmit">
namespace wcf\system\comment\manager;
use wcf\data\comment\response\CommentResponse;
use wcf\data\comment\Comment;
+use wcf\system\bbcode\BBCodeHandler;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
*/
protected $permissionModEdit = '';
+ /**
+ * permission name for the list of disallowed bbcodes
+ * @var string
+ */
+ protected $permissionDisallowedBBCodes = 'user.comment.disallowedBBCodes';
+
/**
* @inheritDoc
*/
return (WCF::getSession()->getPermission($this->permissionAddWithoutModeration) ? true : false);
}
+ /**
+ * @inheritDoc
+ */
+ public function setDisallowedBBCodes() {
+ BBCodeHandler::getInstance()->setDisallowedBBCodes(explode(',', WCF::getSession()->getPermission($this->permissionDisallowedBBCodes)));
+ }
+
/**
* @inheritDoc
*/