diff --git a/package-lock.json b/package-lock.json index 42014c0a1..4aeaa7bbd 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.js index c2d225be3..2ff1485fa 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.js index 435e3b2b9..c79590ebb 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; }