Vanessa 2025-11-17 19:23:32 +08:00
parent 519997e4f0
commit f3f4760dee

View file

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