mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 ctrl+M 后点击空白会留下 wbr
This commit is contained in:
parent
184b1dbdb5
commit
65557328aa
1 changed files with 4 additions and 0 deletions
|
|
@ -1148,6 +1148,7 @@ export class Toolbar {
|
|||
processRender(renderElement);
|
||||
} else {
|
||||
inlineLastNode = renderElement;
|
||||
// esc 后需要 focus range,但点击空白处不能 focus range,否则光标无法留在点击位置
|
||||
renderElement.outerHTML = "<wbr>";
|
||||
}
|
||||
} else {
|
||||
|
|
@ -1180,6 +1181,9 @@ export class Toolbar {
|
|||
focusBlock(renderElement);
|
||||
renderElement.classList.add("protyle-wysiwyg--select");
|
||||
}
|
||||
} else {
|
||||
// ctrl+M 后点击空白会留下 wbr
|
||||
nodeElement.querySelector("wbr")?.remove();
|
||||
}
|
||||
|
||||
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue