Skip to content

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

:art: 右键点击引用或链接的时候会选中整行

Vanessaf3368c87b647
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 45b48cf372..15f4b3d433 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -3289,6 +3289,7 @@ export class WYSIWYG {
removeSearchMark(target);
}
if (types.includes("block-ref")) {
+ event.preventDefault();
refMenu(protyle, target);
// 阻止 popover
target.setAttribute("prevent-popover", "true");
@@ -3306,6 +3307,7 @@ export class WYSIWYG {
protyle.toolbar.showRender(protyle, target);
return false;
} else if (types.includes("a")) {
+ event.preventDefault();
linkMenu(protyle, target);
if (window.siyuan.config.editor.floatWindowMode === 0 &&
target.getAttribute("data-href")?.startsWith("siyuan://blocks")) {