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": {
"name": "ckeditor5-admonition"
"name": "ckeditor5-admonition",
"targets": {
"build": {
"cache": "true"
}
}
}
}

View File

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

View File

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

View File

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

View File

@ -91,6 +91,11 @@
"lodash-es": "^4.17.21"
},
"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;
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.