feat(editor): allow moving blocks up/down

This commit is contained in:
Elian Doran
2025-05-27 20:36:57 +03:00
parent 541897b1d0
commit 27d1a87fb0
4 changed files with 106 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ import "@triliumnext/ckeditor5-footnotes/index.css";
import "@triliumnext/ckeditor5-math/index.css";
import CodeBlockToolbar from "./plugins/code_block_toolbar.js";
import CodeBlockLanguageDropdown from "./plugins/code_block_language_dropdown.js";
import MoveBlockUpDownPlugin from "./plugins/move_block_updown.js";
/**
* 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.
@@ -42,7 +43,8 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
Uploadfileplugin,
SyntaxHighlighting,
CodeBlockLanguageDropdown,
CodeBlockToolbar
CodeBlockToolbar,
MoveBlockUpDownPlugin
];
/**