mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
This commit is contained in:
parent
947717c3f5
commit
ef8561cf18
1 changed files with 4 additions and 0 deletions
|
|
@ -538,6 +538,7 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
|
|||
range.collapse(true);
|
||||
setRange = true;
|
||||
} else if (type === "NodeAttributeView") {
|
||||
/// #if !MOBILE
|
||||
const cursorElement = element.querySelector(".av__cursor");
|
||||
if (cursorElement) {
|
||||
range.setStart(cursorElement.firstChild, 0);
|
||||
|
|
@ -545,6 +546,9 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
|
|||
} else {
|
||||
return false;
|
||||
}
|
||||
/// #else
|
||||
return false;
|
||||
/// #endif
|
||||
}
|
||||
if (setRange) {
|
||||
focusByRange(range);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue