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: Add a "Copy" option to the document block menu https://github.com/siyuan-note/siyuan/issues/17352
Daniel3d7034a8920a
diff --git a/app/src/protyle/header/openTitleMenu.ts b/app/src/protyle/header/openTitleMenu.tsindex 8341c4b533..029f8c0e2b 100644--- a/app/src/protyle/header/openTitleMenu.ts+++ b/app/src/protyle/header/openTitleMenu.ts@@ -47,11 +47,10 @@ export const openTitleMenu = (protyle: IProtyle, position: IPosition, from: strilabel: window.siyuan.languages.copyDoc,accelerator: undefined,click: async () => {- const responseHTML = await fetchSyncPost("/api/filetree/getDoc", {+ const responseHTML = await fetchSyncPost("/api/block/getBlockDOM", {id: protyle.block.rootID,- mode: 0,});- const textHTML = `<!--data-siyuan='${encodeBase64(responseHTML.data.content)}'-->${responseHTML.data.content}`;+ const textHTML = `<!--data-siyuan='${encodeBase64(responseHTML.data.dom)}'-->${responseHTML.data.dom}`;const responseText = await fetchSyncPost("/api/export/exportMdContent", {id: protyle.block.rootID,refMode: 3,