Make WordPress Core

Opened 3 years ago

Closed 2 years ago

#45831 closed defect (bug) (worksforme)

Soft-Enter (Shift+Enter) creates two <br> elements in Gutenberg visual editor

Reported by: subrataemfluence Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0.2
Component: Editor Keywords:
Focuses: javascript Cc:


While using soft-enter I expect a single <br> element to get inserted between two lines but it creates two of it.

Here is the HTML output:

<p>&lt;?php<br><br>echo 'Hello WordPress...';<br><br>?></p>

Also <br> should appear as <br />.

Change History (1)

#1 @pento
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

This was fixed in Gutenberg 5.3 (GB13850), which was released in WordPress 5.2.

Note: See TracTickets for help on using tickets.