mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
fix global ko references
This commit is contained in:
@@ -94,20 +94,6 @@ function addTextToEditor(text) {
|
||||
}
|
||||
}
|
||||
|
||||
function init() {
|
||||
ko.bindingHandlers.noteLink = {
|
||||
init: async function(element, valueAccessor, allBindings, viewModel, bindingContext) {
|
||||
const noteId = ko.unwrap(valueAccessor());
|
||||
|
||||
if (noteId) {
|
||||
const link = await createNoteLink(noteId);
|
||||
|
||||
$(element).append(link);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function tabContextMenu(e) {
|
||||
const $link = $(e.target);
|
||||
|
||||
@@ -175,6 +161,5 @@ export default {
|
||||
createNoteLink,
|
||||
addLinkToEditor,
|
||||
addTextToEditor,
|
||||
init,
|
||||
goToLink
|
||||
};
|
||||
Reference in New Issue
Block a user