Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/9237

Vanessa06d78e0333c1
diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.ts
index 177bbc6eb1..cc06a9781e 100644
--- a/app/src/protyle/wysiwyg/list.ts
+++ b/app/src/protyle/wysiwyg/list.ts
@@ -652,6 +652,7 @@ export const listOutdent = (protyle: IProtyle, liItemElements: Element[], range:
id: parentLiItemElement.getAttribute("data-node-id"),
data: parentLiItemElement.outerHTML,
previousID: parentLiItemElement.previousElementSibling?.getAttribute("data-node-id"),
+ // https://github.com/siyuan-note/siyuan/issues/9237 无 previousID
parentID: parentLiItemElement.parentElement.getAttribute("data-node-id"),
});
parentLiItemElement.remove();