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: fix https://github.com/siyuan-note/siyuan/issues/7325
Vanessa454538baece2
diff --git a/app/src/protyle/upload/index.ts b/app/src/protyle/upload/index.tsindex 486d0d8edc..dbdb29e1bd 100644--- a/app/src/protyle/upload/index.ts+++ b/app/src/protyle/upload/index.ts@@ -110,8 +110,8 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => {}});const range = getEditorRange(protyle.wysiwyg.element);- if (!succFileText.startsWith("<") && range.toString() === "" && range.startContainer.nodeType === 3 && protyle.toolbar.getCurrentType(range).length > 0) {- // 防止链接插入其他元素中+ if (range.toString() === "" && range.startContainer.nodeType === 3 && protyle.toolbar.getCurrentType(range).length > 0) {+ // 防止链接插入其他元素中 https://ld246.com/article/1676003478664range.setEndAfter(range.startContainer.parentElement);range.collapse(false);}