[wp-trac] [WordPress Trac] #29956: Paragraphs within list items disappear in the editor when switching from text to visual and back

WordPress Trac noreply at wordpress.org
Fri May 22 12:10:36 UTC 2015


#29956: Paragraphs within list items disappear in the editor when switching from
text to visual and back
------------------------------------------+-----------------------------
 Reporter:  brunni                        |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Editor                        |     Version:  4.0
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  javascript
------------------------------------------+-----------------------------
Changes (by iseulde):

 * keywords:   => needs-patch needs-unit-tests
 * focuses:   => javascript
 * milestone:  Awaiting Review => Future Release


Comment:

 This is an auto-p bug.


 {{{
 switchEditors._wp_Nop( '<ol><li>a<p>b</p></li></ol>' );
 }}}
 returns
 {{{
 "<ol>
         <li>ab</li>
 </ol>"
 }}}

 This file really needs some unit tests.

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


More information about the wp-trac mailing list