chore(ckeditor5): fix references: DocumentFragment -> ModelDocumentFragment

This commit is contained in:
Elian Doran
2025-07-12 19:42:54 +03:00
parent b73da46111
commit 28a63e0326

View File

@@ -2,7 +2,7 @@
* https://github.com/zadam/trilium/issues/978
*/
import { DocumentFragment, ModelElement, Plugin, ModelPosition } from "ckeditor5";
import { ModelDocumentFragment, ModelElement, Plugin, ModelPosition } from "ckeditor5";
export default class IndentBlockShortcutPlugin extends Plugin {
@@ -28,7 +28,7 @@ export default class IndentBlockShortcutPlugin extends Plugin {
// in table TAB should switch cells
isInTable() {
let el: ModelPosition | ModelElement | DocumentFragment | null = this.editor.model.document.selection.getFirstPosition();
let el: ModelPosition | ModelElement | ModelDocumentFragment | null = this.editor.model.document.selection.getFirstPosition();
while (el) {
if ("name" in el && el.name === 'tableCell') {