Vanessa 2024-02-13 13:54:25 +08:00
parent 0ad84c1e71
commit 3e8585394d

View file

@ -248,6 +248,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
range.insertNode(tempElement.content.cloneNode(true));
range.collapse(false);
blockElement.querySelector("wbr")?.remove();
protyle.wysiwyg.lastHTMLs[id] = oldHTML;
input(protyle, blockElement as HTMLElement, range);
return;
}