Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:rotating_light:

Vanessa0d62b16da9e8
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 1e07b16f28..62c5bfd504 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/")) {