mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 00:29:59 +01:00
chore(ckeditor5-footnotes): fix references: RootElement -> ModelRootElement
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Command, type Element, type RootElement, type Writer } from "ckeditor5";
|
||||
import { Command, type Element, type ModelRootElement, type Writer } from "ckeditor5";
|
||||
|
||||
import { ATTRIBUTES, ELEMENTS } from './constants.js';
|
||||
import { modelQueryElement } from './utils.js';
|
||||
@@ -82,7 +82,7 @@ export default class InsertFootnoteCommand extends Command {
|
||||
/**
|
||||
* Returns the footnote section if it exists, or creates on if it doesn't.
|
||||
*/
|
||||
private _getFootnoteSection( writer: Writer, rootElement: RootElement ): Element {
|
||||
private _getFootnoteSection( writer: Writer, rootElement: ModelRootElement ): Element {
|
||||
const footnoteSection = modelQueryElement( this.editor, rootElement, element =>
|
||||
element.is( 'element', ELEMENTS.footnoteSection )
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user