export single note as markdown, #166

This commit is contained in:
azivner
2018-09-03 09:40:22 +02:00
parent 467ad79129
commit 9bdd4437f2
9 changed files with 61 additions and 27 deletions
+2
View File
@@ -98,6 +98,8 @@ if (utils.isElectron()) {
});
}
$("#export-note-to-markdown-button").click(() => exportService.exportSubtree(noteDetailService.getCurrentNoteId(), 'markdown-single'));
treeService.showTree();
entrypoints.registerEntrypoints();
@@ -168,13 +168,13 @@ const contextMenuOptions = {
treeChangesService.deleteNodes(treeService.getSelectedNodes(true));
}
else if (ui.cmd === "exportSubtreeToTar") {
exportService.exportSubtree(node.data.noteId, 'tar');
exportService.exportSubtree(node.data.branchId, 'tar');
}
else if (ui.cmd === "exportSubtreeToOpml") {
exportService.exportSubtree(node.data.noteId, 'opml');
exportService.exportSubtree(node.data.branchId, 'opml');
}
else if (ui.cmd === "exportSubtreeToMarkdown") {
exportService.exportSubtree(node.data.noteId, 'markdown');
exportService.exportSubtree(node.data.branchId, 'markdown');
}
else if (ui.cmd === "importIntoNote") {
exportService.importIntoNote(node.data.noteId);