basic implementation of reference link functionality

This commit is contained in:
zadam
2020-03-21 21:04:34 +01:00
parent d927865cbd
commit 9b17e9976e
4 changed files with 19 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ $form.on('submit', () => {
if (notePath) {
$dialog.modal('hide');
textTypeWidget.addLink($linkTitle.val(), '#' + notePath);
textTypeWidget.addLink(notePath, $linkTitle.val());
}
else {
console.error("No path to add link.");