chore(ckeditor5): fix references: Position -> ModelPosition

This commit is contained in:
Elian Doran
2025-07-12 19:41:30 +03:00
parent 4ae3272cdf
commit abafa8c2d2
5 changed files with 13 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
* https://github.com/zadam/trilium/issues/978
*/
import { DocumentFragment, ModelElement, Plugin, Position } from "ckeditor5";
import { DocumentFragment, 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: Position | ModelElement | DocumentFragment | null = this.editor.model.document.selection.getFirstPosition();
let el: ModelPosition | ModelElement | DocumentFragment | null = this.editor.model.document.selection.getFirstPosition();
while (el) {
if ("name" in el && el.name === 'tableCell') {