mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
context menu converted to module
This commit is contained in:
@@ -161,7 +161,7 @@ const noteTree = (function() {
|
||||
console.log("CTRL-V");
|
||||
|
||||
if (event.ctrlKey) { // Ctrl-V
|
||||
pasteAfter(node);
|
||||
contextMenu.pasteAfter(node);
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
@@ -169,7 +169,7 @@ const noteTree = (function() {
|
||||
console.log("CTRL-X");
|
||||
|
||||
if (event.ctrlKey) { // Ctrl-X
|
||||
cut(node);
|
||||
contextMenu.cut(node);
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
@@ -177,7 +177,7 @@ const noteTree = (function() {
|
||||
}
|
||||
});
|
||||
|
||||
treeEl.contextmenu(contextMenuSetup);
|
||||
treeEl.contextmenu(contextMenu.contextMenuSettings);
|
||||
}
|
||||
|
||||
function loadTree() {
|
||||
|
||||
Reference in New Issue
Block a user