Block-based editor

Added · Last updated

The composition of structured content from modular blocks, balancing the fluidity of prose with the precision of structured data.

Adding blocks

Whichever way it’s triggered, the menu opens right where the current actor’s focus is. There’s no need to say where, so picking a block and placing it are one gesture.

Floating menu

…

Slash commands

Typing a slash at the caret opens the command menu at that position. Nothing is selected yet, so the actor names the action first and the block it inserts or converts follows from where the caret is.

Passing to LLM

…

References

…

Contextual actions

Selecting a text span or one or more blocks brings up the actions that apply to them; see contextual actions. The block editor has two levels of selection, the span and the block, and an action offered on a span can act on the whole block that holds it.

Co-editing & attribution

…

Consequences

  • each block carries only as much structure as currently serves it, gained or shed in place, so formalising is local and reversible instead of a commitment made before the work starts
  • the block is now the unit of everything the surface does — selecting, referencing, moving, commenting — so anything that addresses content addresses blocks, whether or not that matches how the actor thinks of what they wrote
  • every position in the document is a place where anything could go next, which puts the weight on saying what without having to say where

Appears in

Making changes

Related patterns

Enables

  • Selection — the surface in which content selection happens

Hosts

  • AI completion — the block editor is a natural container for AI completion

Enacts

  • Formality — incremental formalisation — content carries only as much structure as currently serves, gained or shed in place, optional and reversible

Related to

  • Editing in place — the block editor assumes this move — reading and changing happen on the same blocks, with no separate state for either

Enabled by

  • Command menu — picking a block and placing it; summoned at the current position
  • Contextual actions — “Inside a data view, a block-based editor, or a canvas, the actor has designated a target through a selection or by pointing at an element—a text span, a document block, an object, or rows in a list—and is about to act on it directly rather than searching for an operation by name in a command menu.”
  • Prestructured formatting — “The actor is composing text inside a form, a reply when commenting, a message in a conversation, or a document in a block-based editor, and needs to mark hierarchy and emphasis directly in the flow of writing, much as editing in place keeps edits on the surface itself.”