[wp-trac] [WordPress Trac] #45636: Html edit mode in Gutenberg editor removes wrapping <p> tags

WordPress Trac noreply at wordpress.org
Thu Nov 12 06:01:20 UTC 2020


#45636: Html edit mode in Gutenberg editor removes wrapping <p> tags
-------------------------------------------------+----------------------
 Reporter:  skarabeq                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Editor                               |     Version:  5.0
 Severity:  normal                               |  Resolution:  wontfix
 Keywords:  needs-patch reporter-feedback close  |     Focuses:
-------------------------------------------------+----------------------
Changes (by noisysocks):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 This is expected behaviour. WordPress will automatically insert `<p>`
 tags. If you would like to disable this, you can remove the `wpautop`
 filter.

 https://developer.wordpress.org/reference/functions/wpautop/#more-
 information

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45636#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list