mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +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>");
|
getContenteditableElement(nodeElement).insertAdjacentHTML("afterbegin", "<wbr>");
|
||||||
}
|
}
|
||||||
nodeElement.lastElementChild.remove();
|
nodeElement.lastElementChild.remove();
|
||||||
nodeElement.replaceWith(nodeElement.firstElementChild);
|
nodeElement.replaceWith(...nodeElement.children);
|
||||||
if (range) {
|
if (range) {
|
||||||
focusByWbr(protyle.wysiwyg.element, range);
|
focusByWbr(protyle.wysiwyg.element, range);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue