Vanessa 2024-08-15 12:00:16 +08:00
parent 83b39b89e9
commit 12f74cba9c
5 changed files with 5 additions and 5 deletions

View file

@ -244,7 +244,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
range.collapse(false);
range.insertNode(document.createElement("wbr"));
if (isNodeCodeBlock) {
getContenteditableElement(blockElement).removeAttribute("data-render");
blockElement.querySelector('[data-render="true"]')?.removeAttribute("data-render");
highlightRender(blockElement);
} else {
focusByWbr(blockElement, range);