How to create list with multiple elements, when multiple paragraphs have been selected

I have a problem because when I select multiple paragraphs, unfortunately, one list item is always created. I am using the wrapInList method - ProseMirror Reference manual.

After using wrapInList, do I need to use split - ProseMirror Reference manual method on this list?

I can see that on the prosemirror home page, this functionality works fine. May I know how it was implemented?

The demos use prosemirror-example-setup, so you can check the code in there.

1 Like

wonderful, thanks :slight_smile: wrapInList was enough