What’s new in Gutenberg? (14th March)

2.4 π


Continues the work done in previous releases around balancing writing flow with the ability to easily insert non-text blocks.

  • Show the full blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. inserter (+ button) to the left of empty paragraphs and the default appender. Quick block options (based on compound frequency and recency) remain on the right.
  • Insert default block as provisional — this reduces the proliferation of empty blocks as the editor removes these provisional blocks when unfocusing.
  • When pressing enter from post title, insert initial block as provisional.
  • Fade out the side inserter when typing on the newly created block.
  • Group common block definition on inserters. Use 'frecency' to sort items on top of it.
  • Improve the visual focus style for inbetween inserter.

Writing Flow

Strengthened, tweaked, and polished underlying mechanisms for handling the writing flow in order to provide more stability and consolidation.

  • Move isTyping behaviour to a separate component.
  • Inserting a block should only shift focus to a text field, otherwise focusing the block's "focus stop".
    • Example: Inserting an image should focus the top-level placeholder.
  • Pressing backspace or enter from the block's focus stop should respectively delete or insert a subsequent paragraph block.
    • Example: Pressing enter or delete on an image placeholder.
  • Pressing down arrow from a non-text-field should proceed with a tab transition as expected.
  • Multi-selection at the last text field in a block now accounts for non-contenteditable text fields.
  • Better internal identification of text fields for writing flow transitions. Previously, if a block contained a checkbox, radio, or other non-text input tags, they would be erroneously included in the writing flow sequence.
  • Inserting paragraph block (quote, etc; those with text fields) via autocomplete should move focus to the cursor.
  • Shift-arrow from a text field engages multi-selection, but not if there are other text fields in the intended direction in the same block.
  • Cancel isTyping state when focusing non text field.
  • Improve reliability of the block click-to-clear behavior.
  • When clicking below the editor move focus to last text field — this includes creating a new provisional block if last block is not text. This is equivalent to the default block appender spanning the entire viewport height of the editable canvas.
  • Introduce same undo buffering for general text to the post title (and other post properties).
  • Allow breaking out of List block upon Enter on last empty line.
  • Address conflicts between WritingFlow's selection transitioning and nested blocks by moving selection to the block's focus handler.

Other Changes

#core-editor, #editor, #gutenberg, #gutenberg-new