mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 15:25:51 +01:00
fix(ckeditor5): scroll to selection after undo/redo to keep cursor in view
This commit is contained in:
@@ -27,6 +27,7 @@ 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";
|
||||
import ScrollOnUndoRedoPlugin from "./plugins/scroll_on_undo_redo.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.
|
||||
@@ -46,7 +47,8 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
|
||||
SyntaxHighlighting,
|
||||
CodeBlockLanguageDropdown,
|
||||
CodeBlockToolbar,
|
||||
MoveBlockUpDownPlugin
|
||||
MoveBlockUpDownPlugin,
|
||||
ScrollOnUndoRedoPlugin
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user