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/13358
Vanessa865e9f6dd00e
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 3373c70032..948fa89b98 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -874,7 +874,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {let html = "";for (let i = 0; i < selectedIds.length; i++) {const response = await fetchSyncPost("/api/block/getRefText", {id: selectedIds[i]});- html += `((${selectedIds[i]} '${response.data}')) `;+ html += protyle.lute.Md2BlockDOM(`((${selectedIds[i]} '${response.data}'))`);}insertHTML(html, protyle);} else if (event.shiftKey) {@@ -1085,7 +1085,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {let html = "";for (let i = 0; i < ids.length; i++) {const response = await fetchSyncPost("/api/block/getRefText", {id: ids[i]});- html += `((${ids[i]} '${response.data}')) `;+ html += protyle.lute.Md2BlockDOM(`((${ids[i]} '${response.data}'))`);}insertHTML(html, protyle);} else if (targetElement && !protyle.options.backlinkData && targetElement.className.indexOf("dragover__") > -1) {