Gutenberg: Switching from text to heading only preserves first paragraph

Created on 24 Apr 2017  路  4Comments  路  Source: WordPress/gutenberg

To reproduce, transform a text block of min. 2 paragraphs into a heading. Only the first line is transformed into a heading, while the others disappear.

Framework [Priority] High [Type] Bug

All 4 comments

Related discussions in #484 and #465.

+1 to fixing this, it violates the principle of least surprise. I think one of two things should happen instead:

  • Switching a multi-paragraph text block to a heading is disabled - this operation doesn't really make sense.
  • The current paragraph only is transformed into a heading, and the block is split into either two or three blocks. If we keep a text block as containing multiple paragraphs, it seems potentially difficult to surface this function in the UI.

@youknowriad I think you fixed this? I can't seem to reproduce in master.

Yep, this is fixed now. Let's close it

Was this page helpful?
0 / 5 - 0 ratings