mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 18:40:12 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
0c885cf9ff
4 changed files with 10 additions and 6 deletions
|
|
@ -1852,7 +1852,7 @@ export class WYSIWYG {
|
|||
if (aElement && !event.altKey) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
const linkAddress = Lute.UnEscapeHTMLStr(aLink);
|
||||
let linkAddress = Lute.UnEscapeHTMLStr(aLink);
|
||||
/// #if MOBILE
|
||||
openByMobile(linkAddress);
|
||||
/// #else
|
||||
|
|
@ -1882,6 +1882,10 @@ export class WYSIWYG {
|
|||
}
|
||||
} else if (linkAddress) {
|
||||
/// #if !BROWSER
|
||||
if (0 > linkAddress.indexOf("://")) {
|
||||
// Support click to open hyperlinks like `www.foo.com` https://github.com/siyuan-note/siyuan/issues/9986
|
||||
linkAddress = `https://${linkAddress}`;
|
||||
}
|
||||
shell.openExternal(linkAddress).catch((e) => {
|
||||
showMessage(e);
|
||||
});
|
||||
|
|
|
|||
4
app/stage/protyle/js/lute/lute.min.js
vendored
4
app/stage/protyle/js/lute/lute.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue