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/16214
Vanessad4e23f81fc59
diff --git a/app/src/protyle/wysiwyg/getBlock.ts b/app/src/protyle/wysiwyg/getBlock.tsindex f445dfcb54..196e127fe0 100644--- a/app/src/protyle/wysiwyg/getBlock.ts+++ b/app/src/protyle/wysiwyg/getBlock.ts@@ -184,6 +184,15 @@ export const isEndOfBlock = (range: Range) => {let nextSibling = range.endContainer;if (range.endContainer.nodeType !== 3) {nextSibling = range.endContainer.childNodes[range.endOffset];+ if (!nextSibling) {+ // https://github.com/siyuan-note/siyuan/issues/16214+ if (range.endContainer.parentElement.getAttribute("spellcheck")) {+ nextSibling = range.endContainer;+ }+ } else if (nextSibling.nodeType === 3 && !range.endContainer.childNodes[range.endOffset + 1]) {+ // https://github.com/siyuan-note/siyuan/issues/16227+ return nextSibling.textContent === Constants.ZWSP || nextSibling.textContent === "\n";+ }}while (nextSibling) {