mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
chore(ckeditor5): fix references: NodeAttributes -> ModelNodeAttributes
This commit is contained in:
parent
6cea8e3b87
commit
1fd6465012
@ -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…
x
Reference in New Issue
Block a user