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/12593
Vanessacb1e6774e25d
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.tsindex 0c9ba96bb0..5e2b02e7f4 100644--- a/app/src/protyle/wysiwyg/input.ts+++ b/app/src/protyle/wysiwyg/input.ts@@ -123,8 +123,9 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:let focusHR = false;if (["---", "___", "***"].includes(editElement.textContent) && type !== "NodeCodeBlock") {html = `<div data-node-id="${id}" data-type="NodeThematicBreak" class="hr"><div></div></div>`;- const nextBlockElement = getNextBlock(editElement);- if (nextBlockElement) {+ // https://github.com/siyuan-note/siyuan/issues/12593+ const nextBlockElement = blockElement.nextElementSibling;+ if (nextBlockElement && nextBlockElement.getAttribute("data-node-id")) {if (!isNotEditBlock(nextBlockElement)) {focusBlock(nextBlockElement);} else {