Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/11355

Vanessa95f4750932ce
diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.ts
index 2ab889fb0c..c19409e999 100644
--- a/app/src/protyle/util/table.ts
+++ b/app/src/protyle/util/table.ts
@@ -404,6 +404,7 @@ export const fixTable = (protyle: IProtyle, event: KeyboardEvent, range: Range)
const trElement = cellElement.parentElement as HTMLTableRowElement;
if ((!trElement.nextElementSibling && trElement.parentElement.tagName === "TBODY") ||
(trElement.parentElement.tagName === "THEAD" && !trElement.parentElement.nextElementSibling)) {
+ insertEmptyBlock(protyle, "afterend", nodeElement.getAttribute("data-node-id"));
return true;
}
let nextElement = trElement.nextElementSibling as HTMLTableRowElement;