mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
c8f706f18d
commit
09e52d3c54
@ -156,6 +156,16 @@ export const exportImage = (id: string) => {
|
|||||||
item.parentElement.style.overflow = "hidden";
|
item.parentElement.style.overflow = "hidden";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
previewElement.querySelectorAll(".img img").forEach((item: HTMLImageElement) => {
|
||||||
|
const imgSrc = item.getAttribute("src");
|
||||||
|
if (imgSrc.endsWith(".svg")) {
|
||||||
|
fetchGet(item.src, (response: string) => {
|
||||||
|
item.src = `data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(response)))}`;
|
||||||
|
});
|
||||||
|
} else if (imgSrc.startsWith("assets/")) {
|
||||||
|
item.src = location.origin + "/" + imgSrc;
|
||||||
|
}
|
||||||
|
});
|
||||||
updateWatermark();
|
updateWatermark();
|
||||||
btnsElement[0].removeAttribute("disabled");
|
btnsElement[0].removeAttribute("disabled");
|
||||||
btnsElement[1].removeAttribute("disabled");
|
btnsElement[1].removeAttribute("disabled");
|
||||||
|
Loading…
Reference in New Issue
Block a user