mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
fix: import markdown to text note
This commit is contained in:
@@ -19,6 +19,5 @@ declare global {
|
||||
getHeaders(): Promise<Record<string, string>>;
|
||||
getReferenceLinkTitle(href: string): Promise<string>;
|
||||
getReferenceLinkTitleSync(href: string): string;
|
||||
importMarkdownInline(): void;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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