I have a node type ‘list’ with content paragraph items?
where items has content block*
(and block is the typical group).
If I have a list
where the optional items
is not there, and a joinBackward
command happens to join a paragraph that follows (i.e. the cursor is just after the list and the user presses backspace), ProseMirror adds the missing items
and joins the following paragraph in there.
That seems like a reasonable thing to do in general, but in my case it’s not wanted. I want the items
to remain absent. Are there any hooks to influence these situations?
I tried defining items
as isolating, which solved the problem, but also disabled other operations that were working as I wanted.
I will try a custom joinBackward
which delegates to the existing implementation and then fixes up this problem if it is detected, but it seems a bit kludgy.