mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(ckeditor5): fix references: DocumentFragment -> ModelDocumentFragment
This commit is contained in:
		| @@ -2,7 +2,7 @@ | |||||||
|  * https://github.com/zadam/trilium/issues/978 |  * 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 { | export default class IndentBlockShortcutPlugin extends Plugin { | ||||||
|  |  | ||||||
| @@ -28,7 +28,7 @@ export default class IndentBlockShortcutPlugin extends Plugin { | |||||||
|  |  | ||||||
|     // in table TAB should switch cells |     // in table TAB should switch cells | ||||||
|     isInTable() { |     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) { |         while (el) { | ||||||
|             if ("name" in el && el.name === 'tableCell') { |             if ("name" in el && el.name === 'tableCell') { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user