Allow sorting blocks through Drag & Drop
The arrow will work fine for mobile, but for desktop, probably most users will want to sort blocks with a drag & drop approach.
I noticed that the image block can apparently already be dragged. After discovering that I was expecting all of the block types to be draggable as well.
Yep, and if you select all the text inside a text block, you can drag it and drop it on other places. I tried it, but most of the time, it ended dropping the content inside another block.
Probably the best way to solve this is to have some sort of handler (maybe at the left of the block) which the user would use to drag the hole block.
Drag and drop would be a nice progressive enhancement on top of arrows and shortcut keys!
I'm noodling on a different look for block and inline level formatting controls, based on feedback about the popup toolbars. But in the current UI (which, let's keep for the prototype to get proper feedback on it), we could do something like this:
That is, extend the block level toolbar ever so slightly with a label for what you're looking at, providing a draggable area.
Here's another mockup:

Hover a block to reveal switcher, up/down arrows, and along the top of the edge, a tiny grid of dots indicating a draggable area.
Hi people. I was playing around with image mockups at inVision, and created a short flow that shows drag control on hover.
It also explores the idea of showing another set of actions on hover on the right side. Actions like duplicate a block, delete, split in columns etc. I am not sure if all these actions are a stretch at this point but here is a 10sec video: https://cl.ly/jAEr
I'll be happy to explore this further.
Quick riff on @jasmussen's mockup:
❤️ thanks for that riff Mel!
Mark just voiced a well-formulated concern about the blocks feeling "too heavy". If we, after having used the prototypes for a good long while, feel the same way, perhaps we should consider integrating the type switcher in the block level controls as @JohnPixle did in the mockup above, to limit the floating side UI to just arrows and drag handles. That feels especially true with bigger drag handles.
They do feel quite heavy, yeah.
Continuing from Slack I would like to point out the comment from @melchoyce and share a screenshot comparing Medium and Gutenberg contextual toolbars.

I believe this is related to the overall block weight issue. Not only visually, but heavy in a sense of
Showing both the contextual styling toolbar and the block controls + border at the same time is a bit too much if we indeed want to follow the “just write” flow mentioned earlier at the blog.
Quite unsure on how to overcome this, only testing will show. Will explore this further design-wise and let you know what I come up with.
John
Following up to this, I have been brainstorming with myself about the most efficient options/UI elements shown to the user at each of the 4 states:
- When the user is actively editing the block (writing flow)
- When highlighting text (contextual toolbar)
- When hovering a block
- When clicking on a block
Can we contextually isolate the options for each of the interaction levels above, so that we only show a minimal but useful amount of tools and options to the user?
Each of the decisions taken for every of the above states will define the weight of the block. If a block gets too heavy, and the page is composed of many blocks, we have a heavy page. The weight metaphor here might not only refer to visual information, or in regards to performance. It might depend on the editing levels that is provided for each interaction stage with the block.
UI elements for Block Hover
There is a text block. What might someone want to do to a text block apart from editing the content? Can we provide the options the user needs at this very first level of interaction? Should this UI accommodate only for the hover state, or it should remain when the block is in focus as well? Should these apply to all blocks globally? Should we find a consistent hover vocabulary for all blocks?
Possible actions on hover would be:
- Change the block type (convert to a quote instead of paragraph)
- Move/reorder the block (either with arrows or with dragging. Maybe both)
- Delete it (perhaps with a click-and-backspace pattern as has been suggested, or a trash bin?)
- Perhaps duplicate a block
If the above assumptions are correct (they are assumptions for now), then we evaluate how and where to show these elements/buttons.
(important: in the hover case, we should not forget that the borders of the block would(or would not) appear. I am referring to the block element’s box that currently appear on the prototype.
This prototype: https://iseulde.github.io/editor-blocks/ does not give any hover options on hover. This is interesting and helps with the problem of an indeed busy editor screen with som many hovers. This approach though has the cost of not-direct manipulation of the block.
UI elements for Block Click
Now, what happens when you click on a block. What is the UI? Is it progressive and adds up to the already existing hover UI?
Apart from the case of writing, one would click block either to edit the content as a cohesive entity (text alignment or image floats in the case of image block) OR manipulate individual elements by highlighting them and using the contextual toolbar (Bold, Italics, etc). SO for the case of a text block, one possible UI set for the clicked blocked state could be:
- Alignment tools (applies to all block content)
- Clicking on the block and hitting backspace could easily in
- Consider keeping elements from the previous UI state (hover) such as block type switcher
- The block border/outline could exist or not
UI elements in writing flow
I am all in for the optimal writing flow approach. When the user starts to type I would hide everything except for the circled + icon which adds a new block.
UI elements on Highlight
Highlighting text brings up the contextual toolbar. Would like to explore flows and ideas that do not show both control types (block and contextual). Or at least display them in a consistent, non-obtrusive way.
To summarize, I believe it's a matter of first evaluating the options/needs of the user at each of the 4 interaction states (hover/click/write). We could user-test several scenarios and adapt accordingly.
Sorry for the long post, I would love to hear your input on any of these.
SOLID brainstorm work. I think the different categories of actions you've come up with make a lot of sense.
As a quick preface — we should be mindful about hover, and always keep mobile in mind. We should use it as sparingly as possible. But when you are on a big desktop screen, we should also consider not limiting ourselves out of the dogmatic view that any hover enhancement is off the table. For example, hovering between two blocks to insert a new one is a nice desktop enhancement to make, so long as you do the same on mobile (put cursor where you want a block, click (+) ).
Some quick ones:
[deleting a block] (perhaps with a click-and-backspace pattern as has been suggested, or a trash bin?)
Backspace seems obvious here for now, then we can revisit a trash bin if it becomes necessary after testing.
Perhaps duplicate a block
Same — the browser Cut/Copy/Paste tools should probably suffice, and if they don't we can revisit.
Incidentally the whole writing flow can be really helpful as we explore what we show on hover and on click. When you are on desktop, I think it's important to show the rearrangement controls so you don't have to click in first. Formatting can then appear on click. The switcher is an unknown — does this need to exist on hover, or is it okay to show this only on click? The answer will probably present itself as we move forward.
Here are two recent mockups on hover and click:
https://raw.githubusercontent.com/WordPress/gutenberg/5e50c86e0c5c53cd2245e92537e8931cdc0cb317/mockups/Formatting%2C%20Hover.png
https://raw.githubusercontent.com/WordPress/gutenberg/5e50c86e0c5c53cd2245e92537e8931cdc0cb317/mockups/Formatting%2C%20Click.png
See also this clickable slideshow-prototype I put together for a writing flow:
https://projects.invisionapp.com/share/NMAHISEE5#/screens/219366717
Thanks for putting these together. The inVision prototype is great, love the simplicity of adding a citation to the quote right away. Great points all the way.
Added an animatic for a draggable area in https://github.com/WordPress/gutenberg/issues/90#issuecomment-281043094.
Quick mockup for what a block looks like when being dragged:

See also the animatic in the previous comment 👆
Can we contextually isolate the options for each of the interaction levels above, so that we only show a minimal but useful amount of tools and options to the user?
This comment by @JohnPixle really resonates with me. I keep thinking lately about how magic the editor should be. This to me is where we can bring some of that 'wow it just knew' in. I'm chasing to think of this as 'Predictive Editing', something it seems like the current direction is heading. If done right, I think users will love this.
Another mockup that puts the draggable area along the left side of the block, on hover:

This to me is where we can bring some of that 'wow it just knew' in. I'm chasing to think of this as 'Predictive Editing', something it seems like the current direction is heading.
I think @karmatosed made a great point here adding the predictive character that the editor might potentially need to have. If this is done right, and we achieve a mutual predictive model among the editor and the user, we then have a fine-tuned, truly un-interrupted writing flow. The editor predicts user's next move, and the user predicts (ideally with no effort) the behaviour of the editor (what shall i do in order to achieve [task])
I hope I am not off topic here, but regarding this, I believe that the blocks metaphor might be able to help with enhancing predictability through a metaphor. One knows from real life how a block might behave. Can we extract how a user's model might behave in the editor context? Not sure if it is worth looking into the idea of enhancing this concept or not, and how one would achieve it while maintaining a fairly clean UI.
Great ideas here @karmatosed and @JohnPixle. It truly ties into the whole "everything in its right place" thing I've had on my brain for months now. There's a great song for it too!
https://vimeo.com/157296965
Probably worth grounding it in the near term, and make it feel predictive. Whenever there's a button or feature, worth asking: what's the right place for this? Embracing the block metaphor itself is a step in this direction; we can show the cite attribute only when you are working with quote blocks. That's the right place.
we then have a fine-tuned, truly un-interrupted writing flow. The editor predicts user's next move, and the user predicts (ideally with no effort) the behaviour of the editor (what shall i do in order to achieve [task])
Yes! It just flows :)
@jasmussen that song is now the soundtrack of the editor :)
Whenever there's a button or feature, worth asking: what's the right place for this? Embracing the block metaphor itself is a step in this direction; we can show the cite attribute only when you are working with quote blocks. That's the right place.
So much yes :)
I think another consideration here is should users be able to drag multiple blocks at once? I know if I had 5 paragraphs to move around, I certainly wouldn't want to have to move them all separately. This ties in with #62 (Multiple Block Selection). Looking at the ideas on both tickets, I think the last mockup by @jasmussen would combine best with the demos in 62, because the long draggable area could stretch the whole height of the box surrounding the multiple blocks. This would both help make it clear which blocks are being moved and if the height of the multiple selected blocks is taller than the user's window, it ensures they can always see and access the drag handle. If the drag handle was just a button, it may need to move around so it's always visible.