Vanessa 2026-01-31 18:02:19 +08:00
parent c0c6cfb633
commit ac4f358b4b

View file

@ -292,7 +292,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
return; return;
} }
if (blockElement.classList.contains("av")) { if (blockElement.classList.contains("av") && !isBlock) {
range.deleteContents(); range.deleteContents();
processAV(range, html, protyle, blockElement as HTMLElement); processAV(range, html, protyle, blockElement as HTMLElement);
return; return;