Hey , Is there any function to do the opposite of prosemirror-schema-list’s wrapInList for a list that has more than a list item ? Cheers
lift only works on individual list items and not for the whole list.
Even in the prosemirror basic example, as you can see the lift command isn’t even displayed when the whole list is selected https://i.imgur.com/hjmzIgm.gif
I’m trying to figure out by just replacing the whole list with a fragment built based on paragraphs wrapping each of the list item text node
You can’t generally lift all items in one step, but issuing multiple lift
calls in a row until the entire list is gone should work.
1 Like