Unload the `WoltlabCode` plugin when `Code` is disabled
authorAlexander Ebert <ebert@woltlab.com>
Tue, 8 Aug 2023 14:17:16 +0000 (16:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 8 Aug 2023 14:17:16 +0000 (16:17 +0200)
ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js

index 0d415655ac594731569f14c837484093f3a6493f..168152ac7a907d0afca8a90132fb55fb8e8a5bdb 100644 (file)
@@ -169,7 +169,7 @@ class ConfigurationBuilder {
     if (this.#features.code) {
       this.#toolbar.push("code");
     } else {
-      this.#removePlugins.push("Code");
+      this.#removePlugins.push("Code", "WoltlabCode");
     }
 
     if (this.#features.codeBlock) {
index 94abe2718eb6b2f0186435f1988a749158ea2b23..c6dfc3c851229c3e7a1e7567841a2870af3ce596 100644 (file)
@@ -153,7 +153,7 @@ define(["require", "exports", "../../Language"], function (require, exports, Lan
                 this.#toolbar.push("code");
             }
             else {
-                this.#removePlugins.push("Code");
+                this.#removePlugins.push("Code", "WoltlabCode");
             }
             if (this.#features.codeBlock) {
                 this.#toolbar.push("codeBlock");