mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
Merge branch 'stable'
# Conflicts: # package-lock.json # package.json
This commit is contained in:
@@ -117,7 +117,7 @@ function addTextToEditor(text) {
|
||||
}
|
||||
}
|
||||
|
||||
function tabContextMenu(e) {
|
||||
function newTabContextMenu(e) {
|
||||
const $link = $(e.target);
|
||||
|
||||
const notePath = getNotePathFromLink($link);
|
||||
@@ -142,9 +142,9 @@ function tabContextMenu(e) {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('contextmenu', '.note-detail-text a', tabContextMenu);
|
||||
$(document).on('contextmenu', "a[data-action='note']", tabContextMenu);
|
||||
$(document).on('contextmenu', ".note-detail-render a", tabContextMenu);
|
||||
$(document).on('contextmenu', '.note-detail-text a', newTabContextMenu);
|
||||
$(document).on('contextmenu', "a[data-action='note']", newTabContextMenu);
|
||||
$(document).on('contextmenu', ".note-detail-render a", newTabContextMenu);
|
||||
|
||||
// when click on link popup, in case of internal link, just go the the referenced note instead of default behavior
|
||||
// of opening the link in new window/tab
|
||||
|
||||
Reference in New Issue
Block a user