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/12386
Vanessaa11d52d105ab
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.tsindex 728bf96b8d..ef23756f81 100644--- a/app/src/protyle/render/av/blockAttr.ts+++ b/app/src/protyle/render/av/blockAttr.ts@@ -295,13 +295,17 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"]element.querySelectorAll(".b3-text-field--text").forEach((item: HTMLInputElement) => {item.addEventListener("change", () => {let value;- if (["url", "text", "email", "phone"].includes(item.parentElement.dataset.type)) {+ const type = item.parentElement.dataset.type;+ if (["url", "text", "email", "phone"].includes(type)) {value = {- [item.parentElement.dataset.type]: {+ [type]: {content: item.value}};- } else if (item.parentElement.dataset.type === "number") {+ if (type !== "text") {+ item.parentElement.querySelector("a").setAttribute("href", (type === "url" ? "" : (type === "email" ? "mailto:" : "tel:")) + item.value);+ }+ } else if (type === "number") {if ("undefined" === item.value || !item.value) {value = {number: {@@ -333,7 +337,7 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"]});};-const openEdit = (protyle: IProtyle, element:HTMLElement, event: MouseEvent) => {+const openEdit = (protyle: IProtyle, element: HTMLElement, event: MouseEvent) => {let target = event.target as HTMLElement;const blockElement = hasClosestBlock(target);if (!blockElement) {