Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(nx/ckeditor): fix two @ts-expect-error
Elian Doranb13bc23c24eb
diff --git a/packages/ckeditor5/src/plugins/cuttonote.ts b/packages/ckeditor5/src/plugins/cuttonote.tsindex 28fb0a98a0..34c860d156 100644--- a/packages/ckeditor5/src/plugins/cuttonote.ts+++ b/packages/ckeditor5/src/plugins/cuttonote.ts@@ -6,8 +6,7 @@ export default class CutToNotePlugin extends Plugin {private htmlDataProcessor!: HtmlDataProcessor;init() {- // @ts-ignore Not sure why we need to pass a document.- this.htmlDataProcessor = new HtmlDataProcessor();+ this.htmlDataProcessor = new HtmlDataProcessor(this.editor.editing.view.document);this.editor.ui.componentFactory.add( 'cutToNote', locale => {const view = new ButtonView( locale );diff --git a/packages/ckeditor5/src/plugins/file_upload/fileuploadediting.ts b/packages/ckeditor5/src/plugins/file_upload/fileuploadediting.tsindex e8ae161727..b44b11126a 100644--- a/packages/ckeditor5/src/plugins/file_upload/fileuploadediting.ts+++ b/packages/ckeditor5/src/plugins/file_upload/fileuploadediting.ts@@ -67,8 +67,7 @@ export default class FileUploadEditing extends Plugin {return;}- //@ts-expect-error Missing document.- const writer = new UpcastWriter();+ const writer = new UpcastWriter(this.editor.editing.view.document);for ( const fetchableFile of fetchableFiles ) {// Set attribute marking that the file was processed already.