An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/8839
Vanessa3d721faa79c7
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex 11806fee35..253e436e99 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -669,7 +669,10 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLElemeiconHTML: "",label: `<textarea style="margin: 4px 0" rows="1" class="b3-text-field fn__size200" placeholder="${window.siyuan.languages.imageURL}">${imgElement.getAttribute("src")}</textarea>`,bind(element) {- element.querySelector("textarea").addEventListener("change", (event) => {+ element.querySelector("textarea").addEventListener("input", (event:InputEvent) => {+ if (event.isComposing) {+ return;+ }const value = (event.target as HTMLInputElement).value.replace(/\n|\r\n|\r|\u2028|\u2029/g, "");imgElement.setAttribute("src", value);imgElement.setAttribute("data-src", value);