Skip to content

Commit

Permalink
Disabling images should not disable attachments and smilies
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Jun 27, 2023
1 parent 9f38864 commit 2932012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,11 @@ class ConfigurationBuilder {
this.#removePlugins.push("ImageUpload", "ImageUploadUI", "WoltlabAttachment");
}
} else {
this.#removePlugins.push("ImageInsertUI", "ImageToolbar", "ImageStyle", "ImageUpload", "ImageUploadUI");
this.#removePlugins.push("ImageInsertUI");

if (this.#features.link) {
this.#removePlugins.push("LinkImage");
}

// Disable built-in plugins that rely on the image plugin.
this.#removePlugins.push("WoltlabAttachment");
this.#removePlugins.push("WoltlabSmiley");
}
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2932012

Please sign in to comment.