mirror of
https://github.com/zadam/trilium.git
synced 2025-10-18 19:38:16 +08:00
chore(ckeditor5): fix references: NodeAttributes -> ModelNodeAttributes
This commit is contained in:
parent
6cea8e3b87
commit
1fd6465012
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Command, FileRepository, Model, type NodeAttributes, type ModelWriter } from "ckeditor5";
|
||||
import { Command, FileRepository, Model, type ModelNodeAttributes, type ModelWriter } from "ckeditor5";
|
||||
|
||||
interface FileUploadOpts {
|
||||
file: File[];
|
||||
|
@ -45,7 +45,7 @@ function uploadFile( writer: ModelWriter, model: Model, fileRepository: FileRepo
|
|||
insertFileLink( writer, model, { href: '', uploadId: loader.id }, file );
|
||||
}
|
||||
|
||||
function insertFileLink( writer: ModelWriter, model: Model, attributes: NodeAttributes = {}, file: File ) {
|
||||
function insertFileLink( writer: ModelWriter, model: Model, attributes: ModelNodeAttributes = {}, file: File ) {
|
||||
const placeholder = writer.createElement( 'reference', attributes );
|
||||
model.insertContent( placeholder, model.document.selection );
|
||||
writer.insertText( ' ', placeholder, 'after' );
|
||||
|
|
Loading…
Add table
Reference in a new issue