Opened 7 years ago
Closed 7 years ago
#45831 closed defect (bug) (worksforme)
Soft-Enter (Shift+Enter) creates two <br> elements in Gutenberg visual editor
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 5.0.2 |
| Component: | Editor | Keywords: | |
| Focuses: | javascript | Cc: |
Description
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><?php<br><br>echo 'Hello WordPress...';<br><br>?></p>
Also <br> should appear as <br />.
Change History (1)
Note: See
TracTickets for help on using
tickets.
This was fixed in Gutenberg 5.3 (GB13850), which was released in WordPress 5.2.