mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
519997e4f0
commit
f3f4760dee
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ export const cancelSB = async (protyle: IProtyle, nodeElement: Element, range?:
|
|||
getContenteditableElement(nodeElement).insertAdjacentHTML("afterbegin", "<wbr>");
|
||||
}
|
||||
nodeElement.lastElementChild.remove();
|
||||
nodeElement.replaceWith(nodeElement.firstElementChild);
|
||||
nodeElement.replaceWith(...nodeElement.children);
|
||||
if (range) {
|
||||
focusByWbr(protyle.wysiwyg.element, range);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue