this.#removePlugins.push("HtmlEmbed");
}
- if (this.#features.media) {
- items.push("woltlabBbcode_media");
- } else {
- this.#removePlugins.push("WoltlabMedia");
- }
-
if (items.length > 0) {
this.#toolbar.push({
label: getPhrase("wcf.editor.button.group.block"),
this.#toolbar.push(this.#divider);
}
+ #setupMedia(): void {
+ if (!this.#features.media) {
+ this.#removePlugins.push("WoltlabMedia");
+ }
+ }
+
#setupMention(): void {
if (!this.#features.mention) {
this.#removePlugins.push("Mention", "WoltlabMention");
this.#insertDivider();
+ this.#setupMedia();
this.#setupMention();
}
else {
this.#removePlugins.push("HtmlEmbed");
}
- if (this.#features.media) {
- items.push("woltlabBbcode_media");
- }
- else {
- this.#removePlugins.push("WoltlabMedia");
- }
if (items.length > 0) {
this.#toolbar.push({
label: (0, Language_1.getPhrase)("wcf.editor.button.group.block"),
#insertDivider() {
this.#toolbar.push(this.#divider);
}
+ #setupMedia() {
+ if (!this.#features.media) {
+ this.#removePlugins.push("WoltlabMedia");
+ }
+ }
#setupMention() {
if (!this.#features.mention) {
this.#removePlugins.push("Mention", "WoltlabMention");
this.#setupImage();
this.#setupBlocks();
this.#insertDivider();
+ this.#setupMedia();
this.#setupMention();
}
toConfig() {