This commit is contained in:
Vanessa 2025-03-16 10:45:51 +08:00
parent c63171bc4f
commit 244d360ef0

View file

@ -23,9 +23,12 @@ export const blockRender = (protyle: IProtyle, element: Element, top?: number) =
} }
// 需置于请求返回前,否则快速滚动会导致重复加载 https://ld246.com/article/1666857862494?r=88250 // 需置于请求返回前,否则快速滚动会导致重复加载 https://ld246.com/article/1666857862494?r=88250
item.setAttribute("data-render", "true"); item.setAttribute("data-render", "true");
item.querySelector(".protyle-wysiwyg__embed")?.remove();
genRenderFrame(item); genRenderFrame(item);
item.style.height = (item.clientHeight - 4) + "px"; // 减少抖动 https://ld246.com/article/1668669380171 const embedElement = item.querySelector(".protyle-wysiwyg__embed");
if (embedElement) {
item.style.height = (item.clientHeight - 4) + "px"; // 减少抖动 https://ld246.com/article/1668669380171
embedElement.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");
if (breadcrumb) { if (breadcrumb) {