From 479688370755956c5220008ebd1908c9077d1b56 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 24 Oct 2023 10:06:19 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9494 --- app/src/protyle/toolbar/util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/util.ts b/app/src/protyle/toolbar/util.ts index 64ed3607d..5a8502a9a 100644 --- a/app/src/protyle/toolbar/util.ts +++ b/app/src/protyle/toolbar/util.ts @@ -9,7 +9,8 @@ export const previewTemplate = (pathString: string, element: Element, parentId: } fetchPost("/api/template/render", { id: parentId, - path: pathString + path: pathString, + preview: true }, (response) => { element.innerHTML = `
${response.data.content.replace(/contenteditable="true"/g, "")}
`; });