diff --git a/docs/frontend_api/module.exports.html b/docs/frontend_api/module.exports.html new file mode 100644 index 000000000..1f1bd8852 --- /dev/null +++ b/docs/frontend_api/module.exports.html @@ -0,0 +1,170 @@ + + + + + JSDoc: Class: exports + + + + + + + + + + +
+ +

Class: exports

+ + + + + + +
+ +
+ +

exports()

+ +
TODO: rename, it's not collapsible anymore
+ + +
+ +
+
+ + + + +

Constructor

+ + + +

new exports()

+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/src/public/app/widgets/dialogs/options/appearance.js b/src/public/app/widgets/dialogs/options/appearance.js index 5393e857f..514477228 100644 --- a/src/public/app/widgets/dialogs/options/appearance.js +++ b/src/public/app/widgets/dialogs/options/appearance.js @@ -136,7 +136,7 @@ const TPL = ` -
Monospace font
+
Monospace (code) font
diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.js index b36048611..bdd7573df 100644 --- a/src/public/app/widgets/type_widgets/editable_text.js +++ b/src/public/app/widgets/type_widgets/editable_text.js @@ -266,10 +266,25 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget { await this.initialized; const selection = this.textEditor.model.document.selection; - if (!selection.hasAttribute('linkHref')) return; + const selectedElement = selection.getSelectedElement(); + + if (selectedElement?.name === 'reference') { + // reference link + const notePath = selectedElement.getAttribute('notePath'); + + if (notePath) { + await appContext.tabManager.getActiveContext().setNote(notePath); + return; + } + } + + if (!selection.hasAttribute('linkHref')) { + return; + } const selectedLinkUrl = selection.getAttribute('linkHref'); const notePath = link.getNotePathFromUrl(selectedLinkUrl); + if (notePath) { await appContext.tabManager.getActiveContext().setNote(notePath); } else {