Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
external links are not opened on click
zadamfbb36d652f5e
diff --git a/package-lock.json b/package-lock.jsonindex 42014c0a1b..4aeaa7bbd9 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,6 +1,6 @@{"name": "trilium",- "version": "0.44.3-beta",+ "version": "0.44.4","lockfileVersion": 1,"requires": true,"dependencies": {diff --git a/src/public/app/services/link.js b/src/public/app/services/link.jsindex c2d225be31..2ff1485fa8 100644--- a/src/public/app/services/link.js+++ b/src/public/app/services/link.js@@ -85,7 +85,9 @@ function goToLink(e) {}}else {- if (e.which === 1) {+ if ((e.which === 1 && e.ctrlKey) || e.which === 2+ || $link.hasClass("ck-link-actions__preview") // within edit link dialog single click suffices+ ) {const address = $link.attr('href');if (address && address.startsWith('http')) {diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.jsindex 435e3b2b97..c79590ebb1 100644--- a/src/public/app/widgets/type_widgets/editable_text.js+++ b/src/public/app/widgets/type_widgets/editable_text.js@@ -34,6 +34,10 @@ const TPL = `cursor: pointer;}+ .note-detail-editable-text a[href^="http://"], .note-detail-editable-text a[href^="https://"] {+ cursor: text !important;+ }+.note-detail-editable-text h1 { font-size: 2.0em; }.note-detail-editable-text h2 { font-size: 1.8em; }.note-detail-editable-text h3 { font-size: 1.6em; }