Schema for figure / structured element

Hey, yes same here.

Yes, check these replies from Marijn:

So I am doing that. But trying to find the correct Pos of a node one already has is a bit strange. I am currently using this function (for inline nodes): https://github.com/fiduswriter/prosemirror-footnotes/blob/gh-pages/src/footnote-pm.js#L28-L55 . It seems awkward that one should have to go through this. Maybe we have misunderstood something?