From: Alexander Ebert Date: Fri, 11 Aug 2023 14:22:20 +0000 (+0200) Subject: Unload the `WoltlabHtmlEmbed` plugin when raw HTML is disabled X-Git-Tag: 6.0.0_Beta_1~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=174d60656a606cc0842ee039322f4da2094d95ff;p=GitHub%2FWoltLab%2FWCF.git Unload the `WoltlabHtmlEmbed` plugin when raw HTML is disabled --- diff --git a/ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts b/ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts index ddd54e4c94..566f459332 100644 --- a/ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts +++ b/ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts @@ -201,7 +201,7 @@ class ConfigurationBuilder { if (this.#features.html) { this.#toolbar.push("htmlEmbed"); } else { - this.#removePlugins.push("HtmlEmbed"); + this.#removePlugins.push("HtmlEmbed", "WoltlabHtmlEmbed"); } } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js index 7f8f477acf..4336cfea5b 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js @@ -185,7 +185,7 @@ define(["require", "exports", "../../Language"], function (require, exports, Lan this.#toolbar.push("htmlEmbed"); } else { - this.#removePlugins.push("HtmlEmbed"); + this.#removePlugins.push("HtmlEmbed", "WoltlabHtmlEmbed"); } } #insertDivider() {