Skip to content

Drag & drop reordering of "chapters" in the Table of Contents #5301

@schlessera

Description

@schlessera

I think it would be useful to be able to reorder "chapters" through drag & drop in the "Table of Contents" section in the right sidebar.

image 2018-02-28 at 11 16 05 am

Dragging a specific heading would move that heading and all blocks immediately below it up to and excluding the next heading of the same level.

Dragging headings could also change their level, depending on where you drag them to.

Let's go through a quick example of how I think this could work.

  • A "chapter" is the heading block that was selected, and all blocks immediately following up to and excluding the next heading of the same level or up to the end of the document.
  • If the author drags the entry "H2 The Inserter Tool" entry below the "H2 Media Rich" entry, the "H2 The Inserter Tool" chapter gets moved below the "H2 Media Rich" chapter and is the last chapter in the document from then on.
  • If the author drags the entry "H3 Sub-heading A" on top of the "H2 The Inserter Tool", the chapter "H3 Sub-heading A" moves from being a sub-chapter of "H2 Visual Editing" to being a sub-chapter of "H2 The Inserter Tool".
  • If the author drags the entry "H3 Sub-heading B" between the entries "H2 The Inserter Tool" and "H2 Visual Editing", the chapter "H3 Sub-heading B" gets moved in-between these two chapters and changes its level to "H2 Sub-heading B".

This would make re-ordering the structure of a larger document much faster and easier (no need to scroll around over multiple pages of content) and less error-prone (like copy-pasting only partial chapters).

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Drag and DropDrag and drop functionality when working with blocks[Feature] List ViewMenu item in the top toolbar to select blocks from a list of links.[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions