mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 03:49:11 +08:00
This commit is contained in:
parent
c2d17ec929
commit
2ea76196fe
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user