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/6315
Vanessa70c89fcc8739
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.tsindex 410a540f69..abf43aefb6 100644--- a/app/src/protyle/wysiwyg/input.ts+++ b/app/src/protyle/wysiwyg/input.ts@@ -152,7 +152,12 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:// 使用 md 闭合后继续输入应为普通文本blockElement.outerHTML = html.replace("</span><wbr>", "</span>" + Constants.ZWSP + "<wbr>");}- blockElement = protyle.wysiwyg.element.querySelector(`[data-node-id="${id}"]`);+ protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${id}"]`).forEach((item: HTMLElement) => {+ if (item.getAttribute("data-type") === "NodeBlockQueryEmbed" ||+ !hasClosestByAttribute(item, "data-type", "NodeBlockQueryEmbed")) {+ blockElement = item;+ }+ });Array.from(tempElement.content.children).forEach((item, index) => {const tempId = item.getAttribute("data-node-id");let realElement;