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);