mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
Merge branch 'feature/ckeditor_lib' of github.com:TriliumNext/Notes into feature/ckeditor_lib
This commit is contained in:
commit
dbfb088408
@ -86,6 +86,11 @@
|
||||
}
|
||||
},
|
||||
"nx": {
|
||||
"name": "ckeditor5-admonition"
|
||||
"name": "ckeditor5-admonition",
|
||||
"targets": {
|
||||
"build": {
|
||||
"cache": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,6 +85,11 @@
|
||||
}
|
||||
},
|
||||
"nx": {
|
||||
"name": "ckeditor5-footnotes"
|
||||
"name": "ckeditor5-footnotes",
|
||||
"targets": {
|
||||
"build": {
|
||||
"cache": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -87,6 +87,11 @@
|
||||
}
|
||||
},
|
||||
"nx": {
|
||||
"name": "ckeditor5-keyboard-marker"
|
||||
"name": "ckeditor5-keyboard-marker",
|
||||
"targets": {
|
||||
"build": {
|
||||
"cache": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -89,6 +89,11 @@
|
||||
}
|
||||
},
|
||||
"nx": {
|
||||
"name": "ckeditor5-math"
|
||||
"name": "ckeditor5-math",
|
||||
"targets": {
|
||||
"build": {
|
||||
"cache": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -91,6 +91,11 @@
|
||||
"lodash-es": "^4.17.21"
|
||||
},
|
||||
"nx": {
|
||||
"name": "ckeditor5-mermaid"
|
||||
"name": "ckeditor5-mermaid",
|
||||
"targets": {
|
||||
"build": {
|
||||
"cache": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 );
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user