Merge branch 'feature/ckeditor_lib' of github.com:TriliumNext/Notes into feature/ckeditor_lib

This commit is contained in:
Elian Doran 2025-05-07 13:56:58 +03:00
commit dbfb088408
No known key found for this signature in database
7 changed files with 32 additions and 9 deletions

View File

@ -86,6 +86,11 @@
} }
}, },
"nx": { "nx": {
"name": "ckeditor5-admonition" "name": "ckeditor5-admonition",
"targets": {
"build": {
"cache": "true"
}
}
} }
} }

View File

@ -85,6 +85,11 @@
} }
}, },
"nx": { "nx": {
"name": "ckeditor5-footnotes" "name": "ckeditor5-footnotes",
"targets": {
"build": {
"cache": "true"
}
}
} }
} }

View File

@ -87,6 +87,11 @@
} }
}, },
"nx": { "nx": {
"name": "ckeditor5-keyboard-marker" "name": "ckeditor5-keyboard-marker",
"targets": {
"build": {
"cache": "true"
}
}
} }
} }

View File

@ -89,6 +89,11 @@
} }
}, },
"nx": { "nx": {
"name": "ckeditor5-math" "name": "ckeditor5-math",
"targets": {
"build": {
"cache": "true"
}
}
} }
} }

View File

@ -91,6 +91,11 @@
"lodash-es": "^4.17.21" "lodash-es": "^4.17.21"
}, },
"nx": { "nx": {
"name": "ckeditor5-mermaid" "name": "ckeditor5-mermaid",
"targets": {
"build": {
"cache": "true"
}
}
} }
} }

View File

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

View File

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