diff --git a/wax-prosemirror-core/src/helpers/helpers.js b/wax-prosemirror-core/src/helpers/helpers.js index 738901d0b34b1726c4a23e45348bcab799d84d6d..82ccbad3eff47d6101e52948c1d4b9378eb19ec8 100644 --- a/wax-prosemirror-core/src/helpers/helpers.js +++ b/wax-prosemirror-core/src/helpers/helpers.js @@ -35,7 +35,10 @@ const getDocContent = (schema, serializer, targetFormat, context) => { let content = ''; alterNotesSchema(schema); if (targetFormat === 'JSON') { - content = context.app.context.pmViews.main.state.doc.content.toJSON(); + content = { + type: 'doc', + content: context.app.context.pmViews.main.state.doc.content.toJSON(), + }; } else { const serialize = serializer(schema); content = serialize(context.app.context.pmViews.main.state.doc.content);