Unload the `WoltlabHtmlEmbed` plugin when raw HTML is disabled
authorAlexander Ebert <ebert@woltlab.com>
Fri, 11 Aug 2023 14:22:20 +0000 (16:22 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 11 Aug 2023 14:22:20 +0000 (16:22 +0200)
ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js

index ddd54e4c946a50ddf54bb95ac68fae4b029f615e..566f4593326f121eb3d9b379e8ab4007cd330c35 100644 (file)
@@ -201,7 +201,7 @@ class ConfigurationBuilder {
     if (this.#features.html) {
       this.#toolbar.push("htmlEmbed");
     } else {
-      this.#removePlugins.push("HtmlEmbed");
+      this.#removePlugins.push("HtmlEmbed", "WoltlabHtmlEmbed");
     }
   }
 
index 7f8f477acfa4e1681ab1515483a1fd42a8b1a3de..4336cfea5b33aadf61d7f8686598dfa81dc399a8 100644 (file)
@@ -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() {