mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	chore(ckeditor5): fix references: DocumentFragment -> ModelDocumentFragment
This commit is contained in:
		| @@ -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') { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user