mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
d9dbbcc30d
commit
29a8fa55a1
2 changed files with 2 additions and 3 deletions
|
|
@ -448,7 +448,7 @@ export const hintRenderTemplate = (value: string, protyle: IProtyle, nodeElement
|
||||||
blockRender(protyle, protyle.wysiwyg.element);
|
blockRender(protyle, protyle.wysiwyg.element);
|
||||||
processRender(protyle.wysiwyg.element);
|
processRender(protyle.wysiwyg.element);
|
||||||
highlightRender(protyle.wysiwyg.element);
|
highlightRender(protyle.wysiwyg.element);
|
||||||
avRender(protyle.wysiwyg.element, protyle, undefined, true);
|
avRender(protyle.wysiwyg.element, protyle);
|
||||||
hideElements(["util"], protyle);
|
hideElements(["util"], protyle);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import {unicode2Emoji} from "../../../emoji";
|
||||||
import {focusBlock} from "../../util/selection";
|
import {focusBlock} from "../../util/selection";
|
||||||
import {resizeAV} from "../../util/resize";
|
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[] = [];
|
let avElements: Element[] = [];
|
||||||
if (element.getAttribute("data-type") === "NodeAttributeView") {
|
if (element.getAttribute("data-type") === "NodeAttributeView") {
|
||||||
// 编辑器内代码块编辑渲染
|
// 编辑器内代码块编辑渲染
|
||||||
|
|
@ -49,7 +49,6 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, p
|
||||||
}
|
}
|
||||||
fetchPost("/api/av/renderAttributeView", {
|
fetchPost("/api/av/renderAttributeView", {
|
||||||
id: e.getAttribute("data-av-id"),
|
id: e.getAttribute("data-av-id"),
|
||||||
preview,
|
|
||||||
}, (response) => {
|
}, (response) => {
|
||||||
const data = response.data.view as IAVTable;
|
const data = response.data.view as IAVTable;
|
||||||
// header
|
// header
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue