Vanessa 2025-03-23 16:22:38 +08:00
parent c2d17ec929
commit 2ea76196fe

View File

@ -27,7 +27,9 @@ export const blockRender = (protyle: IProtyle, element: Element, top?: number) =
const embedElement = item.querySelector(".protyle-wysiwyg__embed"); const embedElement = item.querySelector(".protyle-wysiwyg__embed");
if (embedElement) { if (embedElement) {
item.style.height = (item.clientHeight - 4) + "px"; // 减少抖动 https://ld246.com/article/1668669380171 item.style.height = (item.clientHeight - 4) + "px"; // 减少抖动 https://ld246.com/article/1668669380171
embedElement.remove(); item.querySelectorAll(".protyle-wysiwyg__embed").forEach((embedItem) => {
embedItem.remove();
});
} }
const content = Lute.UnEscapeHTMLStr(item.getAttribute("data-content")); const content = Lute.UnEscapeHTMLStr(item.getAttribute("data-content"));
let breadcrumb: boolean | string = item.getAttribute("breadcrumb"); let breadcrumb: boolean | string = item.getAttribute("breadcrumb");