diff --git a/src/interface.js b/src/interface.js index 8a9b328..02d9d01 100644 --- a/src/interface.js +++ b/src/interface.js @@ -120,5 +120,8 @@ export function yDocToProsemirrorJSON ( return response } - return items.map(serialize) + return { + type: 'doc', + content: items.map(serialize) + } }