From 79e73395173d5e66337d2c90807a3ad135c3354a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 3 Jan 2026 21:06:54 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/16762 --- app/src/protyle/util/selection.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.ts index a8a81b488..f9949cf11 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");