mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
context menu on link to open in new tab
This commit is contained in:
@@ -84,6 +84,10 @@ async function saveNotesIfChanged() {
|
||||
/** @type {NoteContext[]} */
|
||||
let noteContexts = [];
|
||||
|
||||
function getActiveComponent() {
|
||||
return getActiveContext().getComponent();
|
||||
}
|
||||
|
||||
/** @returns {NoteContext} */
|
||||
function getActiveContext() {
|
||||
for (const ctx of noteContexts) {
|
||||
@@ -320,6 +324,7 @@ export default {
|
||||
openInTab,
|
||||
switchToNote,
|
||||
loadNote,
|
||||
loadNoteDetail,
|
||||
getActiveNote,
|
||||
getActiveNoteContent,
|
||||
getActiveNoteType,
|
||||
@@ -329,5 +334,6 @@ export default {
|
||||
saveNotesIfChanged,
|
||||
onNoteChange,
|
||||
addDetailLoadedListener,
|
||||
getActiveContext
|
||||
getActiveContext,
|
||||
getActiveComponent
|
||||
};
|
||||
Reference in New Issue
Block a user