Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/14739

Vanessae46c998a6b60
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts
index 72adbf4cf3..65f686efcc 100644
--- a/app/src/protyle/hint/index.ts
+++ b/app/src/protyle/hint/index.ts
@@ -555,6 +555,7 @@ ${genHintItemHTML(item)}
type: "id",
color: `${response.data}${Constants.ZWSP}${refIsS ? "s" : "d"}${Constants.ZWSP}${(refIsS ? fileNames[0] : realFileName).substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen)}`
});
+ protyle.toolbar.range.collapse(false);
});
});
return;
@@ -588,6 +589,7 @@ ${genHintItemHTML(item)}
type: "id",
color: `${tempElement.getAttribute("data-id")}${Constants.ZWSP}${tempElement.getAttribute("data-subtype")}${Constants.ZWSP}${tempElement.textContent}`
});
+ protyle.toolbar.range.collapse(false);
return;
} else if (this.splitChar === ":") {
addEmoji(value);