mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
fix: import markdown to text note
This commit is contained in:
@@ -31,7 +31,10 @@ export default class MarkdownImportPlugin extends Plugin {
|
||||
class ImportMarkdownCommand extends Command {
|
||||
|
||||
execute() {
|
||||
glob.importMarkdownInline();
|
||||
const editorEl = this.editor.editing.view.getDomRoot();
|
||||
const component = glob.getComponentByEl(editorEl);
|
||||
|
||||
component.triggerCommand('pasteMarkdownIntoText');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user