fix(ckeditor): image upload not working

This commit is contained in:
Elian Doran 2025-05-15 18:09:33 +03:00
parent 1d2c3fc7a7
commit 2f12d1a69f
No known key found for this signature in database

View File

@ -28,10 +28,10 @@ import "@triliumnext/ckeditor5-math/index.css";
* Plugins that are specific to Trilium and not part of the CKEditor 5 core, included in both text editors but not in the attribute editor. * Plugins that are specific to Trilium and not part of the CKEditor 5 core, included in both text editors but not in the attribute editor.
*/ */
const TRILIUM_PLUGINS: typeof Plugin[] = [ const TRILIUM_PLUGINS: typeof Plugin[] = [
UploadimagePlugin,
CutToNotePlugin, CutToNotePlugin,
ItalicAsEmPlugin, ItalicAsEmPlugin,
StrikethroughAsDel, StrikethroughAsDel,
UploadimagePlugin,
InternalLinkPlugin, InternalLinkPlugin,
RemoveFormatLinksPlugin, RemoveFormatLinksPlugin,
IndentBlockShortcutPlugin, IndentBlockShortcutPlugin,
@ -72,8 +72,6 @@ export const CORE_PLUGINS: typeof Plugin[] = [
*/ */
export const COMMON_PLUGINS: typeof Plugin[] = [ export const COMMON_PLUGINS: typeof Plugin[] = [
...CORE_PLUGINS, ...CORE_PLUGINS,
...TRILIUM_PLUGINS,
...EXTERNAL_PLUGINS,
CKFinderUploadAdapter, CKFinderUploadAdapter,
Autoformat, Autoformat,
@ -127,7 +125,10 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
TextPartLanguage, TextPartLanguage,
Style, Style,
Bookmark, Bookmark,
Emoji Emoji,
...TRILIUM_PLUGINS,
...EXTERNAL_PLUGINS
]; ];
/** /**