Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16192

Vanessa7e1306cab9f9
diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.ts
index 36bfd37f4a..f35e5a5e4f 100644
--- a/app/src/protyle/util/table.ts
+++ b/app/src/protyle/util/table.ts
@@ -461,8 +461,7 @@ export const fixTable = (protyle: IProtyle, event: KeyboardEvent, range: Range)
if (nextElement) {
range.selectNodeContents(nextElement);
} else {
- insertRow(protyle, range, cellElement, nodeElement);
- range.selectNodeContents(nodeElement.querySelector("tbody").lastElementChild.firstElementChild);
+ insertRow(protyle, range, cellElement.parentElement.firstElementChild as HTMLTableCellElement, nodeElement);
}
event.preventDefault();
return true;