Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 2f12d1a

Browse files
committed
fix(ckeditor): image upload not working
1 parent 1d2c3fc commit 2f12d1a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/ckeditor5/src/plugins.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import "@triliumnext/ckeditor5-math/index.css";
2828
* 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.
2929
*/
3030
const TRILIUM_PLUGINS: typeof Plugin[] = [
31+
UploadimagePlugin,
3132
CutToNotePlugin,
3233
ItalicAsEmPlugin,
3334
StrikethroughAsDel,
34-
UploadimagePlugin,
3535
InternalLinkPlugin,
3636
RemoveFormatLinksPlugin,
3737
IndentBlockShortcutPlugin,
@@ -72,8 +72,6 @@ export const CORE_PLUGINS: typeof Plugin[] = [
7272
*/
7373
export const COMMON_PLUGINS: typeof Plugin[] = [
7474
...CORE_PLUGINS,
75-
...TRILIUM_PLUGINS,
76-
...EXTERNAL_PLUGINS,
7775

7876
CKFinderUploadAdapter,
7977
Autoformat,
@@ -127,7 +125,10 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
127125
TextPartLanguage,
128126
Style,
129127
Bookmark,
130-
Emoji
128+
Emoji,
129+
130+
...TRILIUM_PLUGINS,
131+
...EXTERNAL_PLUGINS
131132
];
132133

133134
/**

0 commit comments

Comments
 (0)