Hi,
I am currently trying to build a structured editor on top of prosemirror. Let’s assume I have a BulletList and a CheckmarkList. Both belong the the ‘list’ group.
A paragraph can contain lists. However, dependent on the context of the paragraph I don’t want to allow the instantiation of a CheckmarkList (Although it would be structurally correct, it would make semantically no sense.
My question is now how I can achieve this type of behavior? Is there a hook with which I can filter the allowed concepts in this context? I have seen that the schema language itself is not powerful enough. I have also read, that the order plays a role when instantiating child node, but I have not found the spot in the code.
Any hint is welcome. Thanks in advance! Bernd