When doc node (root node) is not a div

I’ve been experimenting with Prosemirror for a little bit now. The library seems well thought out and I really appreciate Marijn’s time on it.

I found a bug where if the root node is not a div (sent to EditorView constructor via { mount }), the editor throws an error when you try to delete all contents in it. I’m trying to use text block nodes (heading/paragraph) as the mount node, so I’m not totally sure what happens with other non-div nodes.

----EDIT----- I figured out it was because the schema spec had inline+, not inline*. Discourse for some reason doesn’t let me delete the post.