mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
This commit is contained in:
parent
fa6ee1b1ab
commit
fed43d6ba7
2 changed files with 3 additions and 2 deletions
|
|
@ -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) => {
|
||||
export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, preview = false) => {
|
||||
let avElements: Element[] = [];
|
||||
if (element.getAttribute("data-type") === "NodeAttributeView") {
|
||||
// 编辑器内代码块编辑渲染
|
||||
|
|
@ -49,6 +49,7 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void) =
|
|||
}
|
||||
fetchPost("/api/av/renderAttributeView", {
|
||||
id: e.getAttribute("data-av-id"),
|
||||
preview,
|
||||
}, (response) => {
|
||||
const data = response.data.view as IAVTable;
|
||||
// header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue