mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
chore(nx/ckeditor): fix two @ts-expect-error
This commit is contained in:
parent
57d945fff0
commit
b13bc23c24
@ -6,8 +6,7 @@ export default class CutToNotePlugin extends Plugin {
|
|||||||
private htmlDataProcessor!: HtmlDataProcessor;
|
private htmlDataProcessor!: HtmlDataProcessor;
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
// @ts-ignore Not sure why we need to pass a document.
|
this.htmlDataProcessor = new HtmlDataProcessor(this.editor.editing.view.document);
|
||||||
this.htmlDataProcessor = new HtmlDataProcessor();
|
|
||||||
|
|
||||||
this.editor.ui.componentFactory.add( 'cutToNote', locale => {
|
this.editor.ui.componentFactory.add( 'cutToNote', locale => {
|
||||||
const view = new ButtonView( locale );
|
const view = new ButtonView( locale );
|
||||||
|
@ -67,8 +67,7 @@ export default class FileUploadEditing extends Plugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//@ts-expect-error Missing document.
|
const writer = new UpcastWriter(this.editor.editing.view.document);
|
||||||
const writer = new UpcastWriter();
|
|
||||||
|
|
||||||
for ( const fetchableFile of fetchableFiles ) {
|
for ( const fetchableFile of fetchableFiles ) {
|
||||||
// Set attribute marking that the file was processed already.
|
// Set attribute marking that the file was processed already.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user