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/10971

Vanessa98843fcd09c9
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index 50bd50bead..11247477c5 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -697,7 +697,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
}
event.stopPropagation();
event.preventDefault();
- } else if (nodeEditableElement?.textContent.substr(position.end + 1).indexOf("\n") === -1) {
+ } else if (nodeEditableElement?.textContent.substr(position.end + 1).indexOf("\n") === -1 &&
+ // table 下方为折叠块
+ nodeEditableElement.tagName !== "TABLE") {
// 下一个块是折叠块
const nextFoldElement = getNextBlock(nodeElement) as HTMLElement;
if (nextFoldElement && nextFoldElement.getAttribute("fold") === "1") {