Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: https://github.com/siyuan-note/siyuan/issues/14668

Vanessa36c923e65085
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index b3b763a7cf..4ab7da9a95 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -946,7 +946,7 @@ export class Toolbar {
}
}
- public showRender(protyle: IProtyle, renderElement: HTMLElement, updateElements?: Element[], oldHTML?: string) {
+ public showRender(protyle: IProtyle, renderElement: Element, updateElements?: Element[], oldHTML?: string) {
const nodeElement = hasClosestBlock(renderElement);
if (!nodeElement) {
return;
@@ -1116,9 +1116,9 @@ export class Toolbar {
}
setTimeout(() => {
addScript("/stage/protyle/js/html-to-image.min.js?v=1.11.13", "protyleHtml2image").then(() => {
- renderElement.style.display = "inline-block";
+ (renderElement as HTMLHtmlElement).style.display = "inline-block";
window.htmlToImage.toBlob(renderElement).then(blob => {
- renderElement.style.display = "";
+ (renderElement as HTMLHtmlElement).style.display = "";
const formData = new FormData();
formData.append("file", blob);
formData.append("type", "image/png");