Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reordering list items with drag and drop #21406

Closed
johnbillion opened this issue Apr 5, 2020 · 2 comments · Fixed by #42711
Closed

Reordering list items with drag and drop #21406

johnbillion opened this issue Apr 5, 2020 · 2 comments · Fixed by #42711
Labels
[Block] List Affects the List Block [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.

Comments

@johnbillion
Copy link
Member

Is your feature request related to a problem? Please describe.

It would be great to be able to drag and drop the items within a list (<ul> or <ol>) to reorder the items, similarly to how blocks can be dragged and dropped for reordering.

Background: I recently observed a client creating text-heavy content from scratch in the block editor and they made frequent use of reordering blocks with drag and drop as they fleshed it all out. However they found it frustrating that they couldn't reorder items within a list, and they had to do it "the old-fashioned way" of cutting and pasting.

Describe the solution you'd like

Some form of control for reordering items within a list, preferably drag and drop but in the future potentially the same controls that block reordering uses.

Stretch Goals / Wishlist

  • Dragging and dropping sideways to create indented list items
  • Dragging from one list and dropping into another
@johnbillion johnbillion added [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement. labels Apr 5, 2020
@mtias
Copy link
Member

mtias commented Apr 13, 2020

Prior discussions around this focused on whether each list item should be a child block so that movers / drag behaviours were built in. With the ability of inner-blocks to absorb the toolbar of a child this might become doable.

@JimMcL61
Copy link

List management in WP is horrific. Agree with the above description and challenges. HTML editor doesn't make the job any easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants