external links are not opened on click

This commit is contained in:
zadam 2020-09-27 23:02:21 +02:00
parent 8f68b4f298
commit fbb36d652f
3 changed files with 8 additions and 2 deletions

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "trilium",
"version": "0.44.3-beta",
"version": "0.44.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -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')) {

View file

@ -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; }