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/7234
Vanessa95dc724d0f17
diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.tsindex 1fc5a4e6c0..04994be415 100644--- a/app/src/protyle/wysiwyg/list.ts+++ b/app/src/protyle/wysiwyg/list.ts@@ -537,13 +537,13 @@ 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>`;- liItemElements[0].lastElementChild.before(lastBlockElement);doOperations.push({action: "insert",id: newId,data: lastBlockElement.outerHTML,previousID: liItemElements[0].lastElementChild.previousElementSibling.getAttribute("data-node-id"),});+ liItemElements[0].lastElementChild.before(lastBlockElement);}let previousID;while (nextElement && !nextElement.classList.contains("protyle-attr")) {@@ -572,8 +572,7 @@ export const listOutdent = (protyle: IProtyle, liItemElements: Element[], range:undoOperations.push({action: "move",id: nextId,- parentID: lastBlockElement.getAttribute("data-node-id"),- previousID: previousID || nextElement.previousElementSibling?.getAttribute("data-node-id"),+ previousID: previousID || lastBlockElement.parentElement?.getAttribute("data-node-id"),});previousID = nextId;const tempElement = nextElement;