Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: https://github.com/siyuan-note/siyuan/issues/14742

Vanessacbe58927a810
diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.ts
index fc1caf2088..d876fc1ac4 100644
--- a/app/src/protyle/wysiwyg/enter.ts
+++ b/app/src/protyle/wysiwyg/enter.ts
@@ -204,8 +204,7 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle
action: "insert",
data: newElement.outerHTML,
id: newId,
- previousID: blockElement.previousElementSibling?.previousElementSibling?.getAttribute("data-node-id"),
- parentID: getParentBlock(blockElement).getAttribute("data-node-id") || protyle.block.parentID
+ nextID: blockElement.getAttribute("data-node-id"),
}], [{
action: "delete",
id: newId,