This commit is contained in:
Vanessa 2022-06-14 19:23:45 +08:00
parent 3919eccb90
commit 8c5a32188d
4 changed files with 95 additions and 6 deletions

View file

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