An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/10513
Vanessa82ecfe1c192e
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex b8dd2439b6..f967b28d0e 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -2036,6 +2036,26 @@ export class WYSIWYG {/// #endifreturn;}+ /// #if MOBILE+ // https://github.com/siyuan-note/siyuan/issues/10513+ const virtualRefElement = hasClosestByAttribute(event.target, "data-type", "virtual-block-ref");+ if (virtualRefElement) {+ const blockElement = hasClosestBlock(virtualRefElement)+ if (blockElement) {+ fetchPost("/api/block/getBlockDefIDsByRefText", {+ anchor: virtualRefElement.textContent,+ excludeIDs: [blockElement.getAttribute("data-node-id")]+ }, (response) => {+ checkFold(response.data[0], (zoomIn) => {+ openMobileFileById(protyle.app, response.data[0], zoomIn ? [Constants.CB_GET_ALL, Constants.CB_GET_HL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);+ activeBlur();+ hideKeyboardToolbar();+ });+ });+ }+ return;+ }+ /// #endifconst fileElement = hasClosestByAttribute(event.target, "data-type", "file-annotation-ref");if (fileElement && range.toString() === "") {