From 0d62b16da9e8733ae1e9abfaf7c789eecfa8c7ab Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 9 Aug 2023 22:56:56 +0800 Subject: [PATCH] :rotating_light: --- app/src/protyle/wysiwyg/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 1e07b16f2..62c5bfd50 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1641,12 +1641,12 @@ export class WYSIWYG { // 需放在嵌入块之前,否则嵌入块内的引用、链接、pdf 双链无法点击打开 https://ld246.com/article/1630479789513 const blockRefElement = hasClosestByAttribute(event.target, "data-type", "block-ref"); const aElement = hasClosestByAttribute(event.target, "data-type", "a") || hasClosestByAttribute(event.target, "data-type", "url"); - let aLink = "" + let aLink = ""; if (aElement) { if (aElement.classList.contains("av__celltext")) { - aLink = aElement.textContent.trim() + aLink = aElement.textContent.trim(); } else { - aLink = aElement.getAttribute("data-href") + aLink = aElement.getAttribute("data-href"); } } if (blockRefElement || aLink.startsWith("siyuan://blocks/")) {