Preserve the `Image` plugin
authorAlexander Ebert <ebert@woltlab.com>
Thu, 6 Apr 2023 15:24:52 +0000 (17:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 6 Apr 2023 15:24:52 +0000 (17:24 +0200)
This provides the general handling of image type content, such as smilies or media.

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

index e6d032651b31cfd7d6bcfca16b26f60c0834491d..8ce6e2ec9d051dd2fcd1dbc4f199f911f2b0ce6d 100644 (file)
@@ -119,7 +119,7 @@ class ConfigurationBuilder {
     if (this.#features.image) {
       this.#toolbar.push("insertImage");
     } else {
-      this.#removePlugins.push("Image", "ImageInsertUI", "ImageToolbar", "ImageStyle", "ImageUpload", "ImageUploadUI");
+      this.#removePlugins.push("ImageInsertUI", "ImageToolbar", "ImageStyle", "ImageUpload", "ImageUploadUI");
 
       if (this.#features.link) {
         this.#removePlugins.push("LinkImage");
index 215b9dafe70024c168488ba082a5e00670302343..689eed95cac3b7c106c815a425e3f74ef573fd6f 100644 (file)
@@ -109,7 +109,7 @@ define(["require", "exports", "../../Language"], function (require, exports, Lan
                 this.#toolbar.push("insertImage");
             }
             else {
-                this.#removePlugins.push("Image", "ImageInsertUI", "ImageToolbar", "ImageStyle", "ImageUpload", "ImageUploadUI");
+                this.#removePlugins.push("ImageInsertUI", "ImageToolbar", "ImageStyle", "ImageUpload", "ImageUploadUI");
                 if (this.#features.link) {
                     this.#removePlugins.push("LinkImage");
                 }