diff --git a/lib/client/grapes/editor/initEditor.tsx b/lib/client/grapes/editor/initEditor.tsx index d1975511..bbedf021 100644 --- a/lib/client/grapes/editor/initEditor.tsx +++ b/lib/client/grapes/editor/initEditor.tsx @@ -50,7 +50,10 @@ const initEditor = async (startServer = true, standaloneServer: boolean): Promis if (startServer) { editor.on('storage:store', () => { - const e = { components: editor.getComponents(), styles: editor.getStyles() } + const e = { + components: JSON.stringify(editor.getComponents()), + styles: JSON.stringify(editor.getStyle()), + } saveTemplate(e, standaloneServer) }) const data = await loadTemplate(standaloneServer)