Skip to content

Commit 2692b1d

Browse files
committed
Remove the [media] button when disabling media support
See https://www.woltlab.com/community/thread/311910-setupfeatures-im-editor/
1 parent 0b207e1 commit 2692b1d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ts/WoltLabSuite/Core/Component/Ckeditor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,10 @@ export async function setupCkeditor(
298298
}
299299
if (features.media) {
300300
setupMedia(element);
301+
} else {
302+
bbcodes = bbcodes.filter((item) => item.name !== "media");
301303
}
304+
302305
setupMention(element);
303306
if (features.quoteBlock) {
304307
setupQuote(element);

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)