chore(nx/ckeditor): fix two @ts-expect-error

This commit is contained in:
Elian Doran 2025-05-07 11:37:56 +03:00
parent 57d945fff0
commit b13bc23c24
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -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 );

View File

@ -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.