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/8554 link
Vanessa1cb112ad87fd
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex 544f8c0710..0429391574 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -1733,15 +1733,13 @@ style="margin:4px 0;width: ${isMobile() ? "100%" : "360px"}" class="b3-text-fielinputElements[0].select();}window.siyuan.menus.menu.removeCB = () => {- const title = Lute.EscapeHTMLStr(inputElements[2].value.replace(/\n|\r\n|\r|\u2028|\u2029/g, ""));- const href = Lute.EscapeHTMLStr(inputElements[0].value.replace(/\n|\r\n|\r|\u2028|\u2029/g, ""));- if (title) {- linkElement.setAttribute("data-title", title);+ if (inputElements[2].value) {+ linkElement.setAttribute("data-title", Lute.EscapeHTMLStr(inputElements[2].value.replace(/\n|\r\n|\r|\u2028|\u2029/g, "")));} else {linkElement.removeAttribute("data-title");}if (linkElement.getAttribute("data-type").indexOf("a") > -1) {- linkElement.setAttribute("data-href", href);+ linkElement.setAttribute("data-href", Lute.EscapeHTMLStr(inputElements[0].value.replace(/\n|\r\n|\r|\u2028|\u2029/g, "")));} else {linkElement.removeAttribute("data-href");}