[wp-trac] [WordPress Trac] #45831: Soft-Enter (Shift+Enter) creates two <br> elements in Gutenberg visual editor
WordPress Trac
noreply at wordpress.org
Fri Jan 4 13:57:46 UTC 2019
#45831: Soft-Enter (Shift+Enter) creates two <br> elements in Gutenberg visual
editor
------------------------------+-----------------------------
Reporter: subrataemfluence | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.0.2
Severity: normal | Keywords:
Focuses: javascript |
------------------------------+-----------------------------
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 />`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45831>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list