Is there an isolated way of defining how a node is serialized to text, preferably directly in the
Let’s take the dino example: https://prosemirror.net/examples/dino/
If I copy the second line and pasted it here as plain text, I get this:
This paragraph , for example, is full of dinosaurs.
What I would like to have is the following result:
This paragraph stegosaurus, for example, triceratops is full tyrannosaurus of dinosaurs.
Achieving that seems to be possible only using the editor prop
clipboardTextSerializer. That however adds centralized editor-specific logic far apart from the actual node specification.
I’d prefer to have the logic right inside the node specification, as the serialization is specific to this type of node, just like