mirror of
https://github.com/zadam/trilium.git
synced 2025-01-01 04:41:46 +08:00
external links are not opened on click
This commit is contained in:
parent
8f68b4f298
commit
fbb36d652f
3 changed files with 8 additions and 2 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.44.3-beta",
|
"version": "0.44.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -85,7 +85,9 @@ function goToLink(e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
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');
|
const address = $link.attr('href');
|
||||||
|
|
||||||
if (address && address.startsWith('http')) {
|
if (address && address.startsWith('http')) {
|
||||||
|
|
|
@ -34,6 +34,10 @@ const TPL = `
|
||||||
cursor: pointer;
|
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 h1 { font-size: 2.0em; }
|
||||||
.note-detail-editable-text h2 { font-size: 1.8em; }
|
.note-detail-editable-text h2 { font-size: 1.8em; }
|
||||||
.note-detail-editable-text h3 { font-size: 1.6em; }
|
.note-detail-editable-text h3 { font-size: 1.6em; }
|
||||||
|
|
Loading…
Reference in a new issue