Skip to content

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

:bug: Correct cursor position after inserting nested lists https://github.com/siyuan-note/siyuan/issues/18602

Daniel8562b11117da
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts
index 16148c2a95..d4f16fcd32 100644
--- a/app/src/protyle/hint/index.ts
+++ b/app/src/protyle/hint/index.ts
@@ -983,7 +983,7 @@ ${genHintItemHTML(item)}
action: "delete",
id: newListId
}]);
- focusBlock(newListEl);
+ focusByWbr(newListEl, range);
return;
}
const oldHTML = nodeElement.outerHTML;