From 80fdb0236662d508d8ab71181429d6ef2311aadd Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 9 Jan 2023 22:26:16 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/7026 --- app/src/protyle/wysiwyg/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index f573c58f7..99cc3bf36 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1483,6 +1483,10 @@ export class WYSIWYG { /// #if MOBILE openMobileFileById(refBlockId, foldResponse.data ? [Constants.CB_GET_ALL, Constants.CB_GET_HL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]); /// #else + if (aElement) { + window.open(aElement.getAttribute("data-href")) + return; + } if (window.siyuan.shiftIsPressed) { openFileById({ id: refBlockId,