Should liftListItem handle a selection over multiple lists?

Author: adrianheineCreated Mar 9, 2018Updated Apr 7, 2026

Given the following doc:

  • doc
    • ul
      • li
    • ul
      • li

With both lists selected, liftListItem doesn't work, since it uses blockRange to find a single NodeRange over a list covering the whole current selection. Since liftListItem is the primitive operation exported by prosemirror-schema-list, this limitation means the behavior has to be re-implemented by client-code if it should cover the case I described.