WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#47741 new defect (bug)

Empty Paragraph created under a block

Reported by: montviso Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.2.2
Component: Editor Keywords: reporter-feedback
Focuses: Cc:
PR Number:

Description

I like to work with the Gutenberg editor, but a few things cause me problems. I know how to help myself, but when customers need to maintain content, it gets difficult.

One point is that often an empty paragraph is created under a block I'm editing, so code looks like this:

<!-- wp paragraph -->
<p></p>
<!-- /wp paragraph -->

I work with blocks of different background colors. If an empty container slips in between, it has the background color of the page (see attached picture).

In the Visible Editor, "Write something or type / for block selection" appears at the position.

When I place the cursor there and use the return key, I sometimes get rid of the container, sometimes not. The only safe method is to go into the code editor and delete the paragraph. But this is no method for customers without HTML dxperience.

Attachments (3)

gutenberg-leerer-container.jpg3.JPG (16.0 KB) - added by montviso 4 months ago.
Gutenberg Empty Paragraph
gutenberg-leerer-container.jpg2.JPG (19.3 KB) - added by montviso 4 months ago.
Little Block with Background color of page
gutenberg-leerer-container.jpg1.JPG (21.6 KB) - added by montviso 4 months ago.
This is visible under the block

Download all attachments as: .zip

Change History (5)

@montviso
4 months ago

Gutenberg Empty Paragraph

@montviso
4 months ago

Little Block with Background color of page

@montviso
4 months ago

This is visible under the block

#1 @SergeyBiryukov
4 months ago

  • Component changed from General to Editor

#2 @isabel_brison
4 months ago

  • Keywords reporter-feedback added

Hi @montviso, thanks for the report. This ticket is related to the block editor so it belongs in the Gutenberg repo. There are already a couple of tickets that may be related over there:

https://github.com/WordPress/gutenberg/issues/15918

https://github.com/WordPress/gutenberg/issues/16736

Is your particular situation already covered by either of those tickets? If not, could you please add some more details as to how it differs from them?

Note: See TracTickets for help on using tickets.