We were trying to have a fixed “header” node in the editor, that is always the first node and has predefined fields that you can edit - like “description”, etc. The predefined fields are retrieved from the DB and the idea was that we should add the header node according to the retrieved data during the document initialization.
How can we enforce that in prosemirror? We will probably have to handle delete transactions and backspace, but I’m not sure how to keep the node always as a first node.
We are using yjs for collaboration so there may also be a problem with the always on top node when we are emerging the documents.