chore(ckeditor5-footnotes): fix references: Writer -> ModelWriter

This commit is contained in:
Elian Doran
2025-07-12 19:21:20 +03:00
parent 275d07659d
commit 23fe76989b
2 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { Command, type ModelElement, type ModelRootElement, type Writer } from "ckeditor5";
import { Command, type ModelElement, type ModelRootElement, type ModelWriter } 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: ModelRootElement ): ModelElement {
private _getFootnoteSection( writer: ModelWriter, rootElement: ModelRootElement ): ModelElement {
const footnoteSection = modelQueryElement( this.editor, rootElement, element =>
element.is( 'element', ELEMENTS.footnoteSection )
);