fix: import markdown to text note

This commit is contained in:
SiriusXT
2025-10-28 10:17:37 +08:00
parent b2f1b3c910
commit 507910b0ce
7 changed files with 47 additions and 32 deletions

View File

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