Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/9494

Vanessa29a8fa55a1b1
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.ts
index d7053139d7..6107cabdc3 100644
--- a/app/src/protyle/hint/extend.ts
+++ b/app/src/protyle/hint/extend.ts
@@ -448,7 +448,7 @@ export const hintRenderTemplate = (value: string, protyle: IProtyle, nodeElement
blockRender(protyle, protyle.wysiwyg.element);
processRender(protyle.wysiwyg.element);
highlightRender(protyle.wysiwyg.element);
- avRender(protyle.wysiwyg.element, protyle, undefined, true);
+ avRender(protyle.wysiwyg.element, protyle);
hideElements(["util"], protyle);
});
};
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 21d37b669f..46b2bb4465 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -7,7 +7,7 @@ import {unicode2Emoji} from "../../../emoji";
import {focusBlock} from "../../util/selection";
import {resizeAV} from "../../util/resize";
-export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, preview = false) => {
+export const avRender = (element: Element, protyle: IProtyle, cb?: () => void) => {
let avElements: Element[] = [];
if (element.getAttribute("data-type") === "NodeAttributeView") {
// 编辑器内代码块编辑渲染
@@ -49,7 +49,6 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, p
}
fetchPost("/api/av/renderAttributeView", {
id: e.getAttribute("data-av-id"),
- preview,
}, (response) => {
const data = response.data.view as IAVTable;
// header