From 2f12d1a69fade48df905fbc744f7bbabfafc9a58 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 15 May 2025 18:09:33 +0300 Subject: [PATCH] fix(ckeditor): image upload not working --- packages/ckeditor5/src/plugins.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/ckeditor5/src/plugins.ts b/packages/ckeditor5/src/plugins.ts index 58943dae4..19fbc748e 100644 --- a/packages/ckeditor5/src/plugins.ts +++ b/packages/ckeditor5/src/plugins.ts @@ -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. */ const TRILIUM_PLUGINS: typeof Plugin[] = [ + UploadimagePlugin, CutToNotePlugin, ItalicAsEmPlugin, StrikethroughAsDel, - UploadimagePlugin, InternalLinkPlugin, RemoveFormatLinksPlugin, IndentBlockShortcutPlugin, @@ -72,8 +72,6 @@ export const CORE_PLUGINS: typeof Plugin[] = [ */ export const COMMON_PLUGINS: typeof Plugin[] = [ ...CORE_PLUGINS, - ...TRILIUM_PLUGINS, - ...EXTERNAL_PLUGINS, CKFinderUploadAdapter, Autoformat, @@ -127,7 +125,10 @@ export const COMMON_PLUGINS: typeof Plugin[] = [ TextPartLanguage, Style, Bookmark, - Emoji + Emoji, + + ...TRILIUM_PLUGINS, + ...EXTERNAL_PLUGINS ]; /**