An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: list
Vanessabf9c833a2761
diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.tsindex 39a058ae1c..1fc5a4e6c0 100644--- a/app/src/protyle/wysiwyg/list.ts+++ b/app/src/protyle/wysiwyg/list.ts@@ -537,12 +537,12 @@ export const listOutdent = (protyle: IProtyle, liItemElements: Element[], range:lastBlockElement.setAttribute("data-type", "NodeList");lastBlockElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));lastBlockElement.innerHTML = `<div class="protyle-attr" contenteditable="false">${Constants.ZWSP}</div>`;- parentLiItemElement.after(lastBlockElement);+ liItemElements[0].lastElementChild.before(lastBlockElement);doOperations.push({action: "insert",id: newId,data: lastBlockElement.outerHTML,- previousID: parentLiItemElement.getAttribute("data-node-id"),+ previousID: liItemElements[0].lastElementChild.previousElementSibling.getAttribute("data-node-id"),});}let previousID;