I would like to create a “placeholder” type of a node that is bound and watches changes to outside input. ie: I want to be able to type [companyName] (or anyting inside ) and bind it to data outside prosemirror (for example a companyName field in a json object.) When i change the data in the json object, prosemirror should render the [companyName] with the new value.
imagine it as a dynamic invoice editor when you can set a template with your placeholders that read and watch your database and render the changes but you can also write your context.
I that possible with prosemirror? Any ideas on how to go about this?