Skip to content

Commit

Permalink
yDocToProsemirrorJSON should include top-level doc element
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Moor committed Oct 13, 2020
1 parent 43f01a9 commit e26f409
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,8 @@ export function yDocToProsemirrorJSON (
return response
}

return items.map(serialize)
return {
type: 'doc',
content: items.map(serialize)
}
}

0 comments on commit e26f409

Please sign in to comment.