Support » Requests and Feedback » Stray Paragraph Blocks

  • The block editor has the nasty habit of leaving blank paragraphs lying around when the user saves a page with the “start writing…” in place. These blank tags now have a :before pseudo tag so they now are taking up “space”.

    It would be nice if all “unstarted” blocks could be deleted on save.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    The before part was added intentionally, so that they would take up space.

    There is a Spacer block in the editor for that purpose instead, but people are used to making vertical space by simply hitting enter a couple of times. Now, even though this isn’t the correct way to do it on the web, you can’t really change people. So the empty paragraphs now take up space, allowing the back end editor to look the same as the front end in terms of spacing. The empty Ps aren’t compressed out anymore.

    So, deleting those empty blocks would be against the purpose of them. People leave them intentionally in order to make vertical space. If they want them removed, then they can simply delete them. What’s in the editor should be what the user puts in, and it should be as close as possible to what is displayed on the webpage.

    Thread Starter John Antonacci

    (@johnnya23)

    Thanks, @otto42 for the response. I guess I understand wanting to bow to the prevailing expectation. My point would be why not encourage using the “correct” tool by disabling the “wrong” tool (not looking for an argument though).

    For me, I end up with those unintentional empty p’s because if you save the page and the last place you had your cursor was in one of those empty p’s you get the block.

    Now that i understand the situation I can correct. thx again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.