From 8bc42cd121c5660a777902ccd41c27e77bdea785 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 14 Oct 2025 01:17:59 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/15998 Signed-off-by: Daniel <845765@qq.com> --- app/src/protyle/util/selection.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.ts index c98a1c997..59c7ae2ed 100644 --- a/app/src/protyle/util/selection.ts +++ b/app/src/protyle/util/selection.ts @@ -149,7 +149,8 @@ export const getEditorRange = (element: Element): Range => { } } // 移动端获取有偏差 https://github.com/siyuan-note/siyuan/issues/15998 - if (getContenteditableElement(range.startContainer as Element)) { + if ((range.startContainer as Element).getAttribute("contenteditable") !== "true" && + getContenteditableElement(range.startContainer as Element)) { const blockElement = hasClosestBlock(range.startContainer); if (blockElement) { const focusRange = focusBlock(blockElement);