I’m still trying to wrap my head around the way Prosemirror is structured. Sorry if I’m going about this in completely the wrong manner.
I would like ProseMirror to recognize the structure that we have in our documents. They are currently represented as just two separate paragraph tags enclosed within a div with a special attribute and class.
Currently, when prosemirror parses this structure, it will turn the HTML it into the following:
It basically just strips out the enclosing div. I’m using the ProseMirror dino example as a starting point… My thought was that I needed to create a NodeSpec defining the enclosing div. The div will always have two paragraph tags within. Is there anything obvious that I’m doing incorrectly?
You failed to specify a way in which the org_property node can actually be part of the document—it doesn’t appear in any content expression, and it’s not part of any group that does appear in content expressions.