Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/16762

Vanessa79e73395173d
diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.ts
index a8a81b488f..f9949cf11d 100644
--- a/app/src/protyle/util/selection.ts
+++ b/app/src/protyle/util/selection.ts
@@ -671,6 +671,9 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
});
}
if (cursorElement) {
+ if (cursorElement.getAttribute("contenteditable") === "false") {
+ return false;
+ }
if (cursorElement.tagName === "TABLE") {
if (toStart) {
cursorElement = cursorElement.querySelector("th, td");