mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
tree changes as a module
This commit is contained in:
@@ -6,7 +6,7 @@ const contextMenu = (function() {
|
||||
function pasteAfter(node) {
|
||||
const subjectNode = getNodeByKey(noteTree.getClipboardNoteId());
|
||||
|
||||
moveAfterNode(subjectNode, node);
|
||||
treeChanges.moveAfterNode(subjectNode, node);
|
||||
|
||||
noteTree.setClipboardNoteId(null);
|
||||
}
|
||||
@@ -14,7 +14,7 @@ const contextMenu = (function() {
|
||||
function pasteInto(node) {
|
||||
const subjectNode = getNodeByKey(noteTree.getClipboardNoteId());
|
||||
|
||||
moveToNode(subjectNode, node);
|
||||
treeChanges.moveToNode(subjectNode, node);
|
||||
|
||||
noteTree.setClipboardNoteId(null);
|
||||
}
|
||||
@@ -80,7 +80,7 @@ const contextMenu = (function() {
|
||||
pasteInto(node);
|
||||
}
|
||||
else if (ui.cmd === "delete") {
|
||||
deleteNode(node);
|
||||
treeChanges.deleteNode(node);
|
||||
}
|
||||
else {
|
||||
console.log("Unknown command: " + ui.cmd);
|
||||
|
||||
Reference in New Issue
Block a user