[wp-trac] [WordPress Trac] #41049: Visual editor adds extra space to top of the post

WordPress Trac noreply at wordpress.org
Wed Jul 3 11:08:36 UTC 2019


#41049: Visual editor adds extra space to top of the post
--------------------------+-----------------------------
 Reporter:  programmin    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  TinyMCE       |     Version:  4.8
 Severity:  normal        |  Resolution:  maybelater
 Keywords:                |     Focuses:  ui, javascript
--------------------------+-----------------------------
Changes (by azaozz):

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


Comment:

 The empty `<p>` in the above example seems inserted by TinyMCE when autop
 is disabled. Happens only when the content starts with a tab character
 (U+0009). If it is spaces, or is there is an empty line above it, it
 doesn't add the paragraph.

 If autop is enabled (the default), it trims the content removing that tab
 char. Ideally this should be fixed upstream. When that is done, it will be
 fixed in WP on the next TinyMCE update.

 This is also superseded by the block editor, doesn't happen there. Closing
 as maybelater for now. Feel free to reopen with a patch if this needs
 fixing in the classic editor.

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


More information about the wp-trac mailing list