For a reason, I’m creating a nested list structure using something like:
Summary
- bulletList
- listItem
- listItem
- bulletList
- listItem
- listItem
as opposed to
- bulletList
- listItem
- listItem
- listItem
- bulletList
- listItem
- listItem
- bulletList
I’ve put up an example glitch on https://glitch.com/~judicious-rayon
If I select a range that includes a nested subtree (see example) and either cut or delete it, Prosemirror keeps the nested nodes around, rather than collapsing the slice.
I would expect this if defining
were true, but this is not the case here. Am I missing something?
Kind of similar to Defining a container node, that gets removed when empty?, but that looks more like ContentMatch filling the node’s content based on the schema. Here, I’m asking more about the behaviour on doing a replace with an empty slice.