mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
979cb54766
commit
d391809442
1 changed files with 1 additions and 1 deletions
|
|
@ -546,7 +546,7 @@ export const focusByWbr = (element: Element, range: Range) => {
|
||||||
} else if (wbrElement.nextSibling) {
|
} else if (wbrElement.nextSibling) {
|
||||||
if (wbrElement.nextSibling.nodeType === 3) {
|
if (wbrElement.nextSibling.nodeType === 3) {
|
||||||
if (wbrElement.nextSibling.textContent === Constants.ZWSP) {
|
if (wbrElement.nextSibling.textContent === Constants.ZWSP) {
|
||||||
// <wbr>零块空格text
|
// <wbr>零宽空格text
|
||||||
range.setStart(wbrElement.nextSibling, 1);
|
range.setStart(wbrElement.nextSibling, 1);
|
||||||
} else {
|
} else {
|
||||||
// <wbr>text
|
// <wbr>text
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue