This commit is contained in:
parent
29a8fa55a1
commit
4796883707
1 changed files with 2 additions and 1 deletions
|
@ -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 = `<div class="protyle-wysiwyg" style="padding: 8px">${response.data.content.replace(/contenteditable="true"/g, "")}</div>`;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue