I have a rather unconventional schema, and there’s a situation where certain invalid edits are prevented by ProseMirror, but with an exception. I was wondering if there’s a simple way to tell ProseMirror to silently disallow those.
In my schema I have a special kind of list that can contains “links”, and regular paragraphs:
{name: 'list', content: 'heading (paragraph | linkItem)*'}
The linkItems are essentially atoms, although I don’t mark them as such because I want to be able to place the caret before or after them, so you can press enter an insert a paragraph.
This all mostly works just from the schema content definition.
An example of the exception:
[link item]
[link item]