EditorState.create() creates optional nodes

Let me start by noting that I am using version 1.0.0, so if this is old behavior then I’ll bite the bullet and upgrade.

With a schema that has optional nodes:

doc: {
      content: "nodeA optNode1? optNode2? nodeB"
},

When I call EditorState.create() using this schema I get a document that contains the optional nodes. Is there a way to prevent this? Is there some option that I can specify that will cause the creation of the doc node to omit the optional nodes?

That shouldn’t happen. But yeah, try upgrading, 1.0 is almost two years old now, there’s really no reason to still be running it.