Skip to content

Build your personal knowledge base with Trilium Notes

chore(ckeditor5): fix references: DocumentSelection -> ModelDocumentSelection

Elian Doran1566ae4fbdda
diff --git a/packages/ckeditor5/src/plugins/move_block_updown.ts b/packages/ckeditor5/src/plugins/move_block_updown.ts
index ec8b8b3911..2c6e7dc805 100644
--- a/packages/ckeditor5/src/plugins/move_block_updown.ts
+++ b/packages/ckeditor5/src/plugins/move_block_updown.ts
@@ -2,7 +2,7 @@
* https://github.com/TriliumNext/Trilium/issues/1002
*/
-import { Command, DocumentSelection, ModelElement, ModelNode, Plugin, ModelRange } from 'ckeditor5';
+import { Command, ModelDocumentSelection, ModelElement, ModelNode, Plugin, ModelRange } from 'ckeditor5';
export default class MoveBlockUpDownPlugin extends Plugin {
init() {
@@ -105,7 +105,7 @@ abstract class MoveBlockUpDownCommand extends Command {
});
}
- getSelectedBlocks(selection: DocumentSelection) {
+ getSelectedBlocks(selection: ModelDocumentSelection) {
const blocks = [...selection.getSelectedBlocks()];
const resolved: ModelElement[] = [];