mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
This commit is contained in:
parent
7735a018f3
commit
980e1bd9d5
3 changed files with 14 additions and 3 deletions
|
|
@ -34,9 +34,8 @@ export const genRenderFrame = (renderElement: Element) => {
|
|||
};
|
||||
|
||||
export const processClonePHElement = (item: Element) => {
|
||||
if (item.getAttribute("data-type") === "NodeHTMLBlock") {
|
||||
const phElement = item.querySelector("protyle-html");
|
||||
item.querySelectorAll("protyle-html").forEach((phElement) => {
|
||||
phElement.setAttribute("data-content", Lute.UnEscapeHTMLStr(phElement.getAttribute("data-content")));
|
||||
}
|
||||
});
|
||||
return item;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue