mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
3919eccb90
commit
8c5a32188d
4 changed files with 95 additions and 6 deletions
|
|
@ -374,7 +374,7 @@ export const focusByWbr = (element: Element, range: Range) => {
|
|||
} else if (wbrPreviousSibling.nodeType !== 3 && (wbrPreviousSibling as HTMLElement).classList.contains("img")) {
|
||||
// <img><wbr>, 删除图片后的唯一的一个字符
|
||||
range.setStartAfter(wbrPreviousSibling);
|
||||
} else {
|
||||
} else {
|
||||
// <span class="hljs-function"><span class="hljs-keyword">fun</span></span>
|
||||
range.setStartBefore(wbrElement);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue