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: https://github.com/siyuan-note/siyuan/issues/17892
Vanessae232e8aaaa0f
diff --git a/app/src/protyle/wysiwyg/move.ts b/app/src/protyle/wysiwyg/move.tsindex 19442cc58d..dfe2b4da70 100644--- a/app/src/protyle/wysiwyg/move.ts+++ b/app/src/protyle/wysiwyg/move.ts@@ -60,7 +60,8 @@ export const moveToUp = (protyle: IProtyle, nodeElement: HTMLElement, range: Ranconst orderIndex = parseInt(sourceParentElement.firstElementChild.getAttribute("data-marker"));sourceElements.reverse().forEach(item => {if (item.classList.contains("list")) {- previousElement.after(item.firstElementChild);+ // 子列表需移动其全部直接子列表项+ Array.from(item.querySelectorAll(":scope > .li")).reverse().forEach(li => previousElement.after(li));} else {previousElement.after(item);}@@ -164,7 +165,8 @@ export const moveToDown = (protyle: IProtyle, nodeElement: HTMLElement, range: Rconst sourceParentElement = sourceElements[0].classList.contains("list") ? sourceElements[0] : sourceElements[0].parentElement;sourceElements.forEach(item => {if (item.classList.contains("list")) {- nextElement.before(item.firstElementChild);+ // 子列表需移动其全部直接子列表项+ Array.from(item.querySelectorAll(":scope > .li")).forEach(li => nextElement.before(li));} else {nextElement.before(item);}