Vanessa 2023-10-24 10:03:32 +08:00
parent d9dbbcc30d
commit 29a8fa55a1
2 changed files with 2 additions and 3 deletions

View file

@ -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);
});
};

View file

@ -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