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/5796
Vanessacfd11b6b1a38
diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.tsindex ea673c737e..d553f529fd 100644--- a/app/src/protyle/wysiwyg/enter.ts+++ b/app/src/protyle/wysiwyg/enter.ts@@ -198,6 +198,16 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle}// https://github.com/siyuan-note/siyuan/issues/5471if (disableElement) {+ if (blockElement.parentElement.classList.contains("li")) {+ const oldHTML = blockElement.parentElement.parentElement.outerHTML;+ const newElement = genListItemElement(blockElement.parentElement, 0, true);+ blockElement.parentElement.insertAdjacentElement("afterend", newElement);+ updateTransaction(protyle, blockElement.parentElement.parentElement.getAttribute("data-node-id"), blockElement.parentElement.parentElement.outerHTML, oldHTML);+ focusByWbr(newElement, range);+ removeEmptyNode(newElement);+ scrollCenter(protyle);+ return;+ }if (blockElement.classList.contains("hr")) {insertEmptyBlock(protyle, "afterend");return;