[wp-trac] [WordPress Trac] #29643: Ordered List Problem When Switiching between Visual Editor and HTML editor

WordPress Trac noreply at wordpress.org
Fri Sep 12 14:24:42 UTC 2014


#29643: Ordered List Problem When Switiching between Visual Editor and HTML editor
--------------------------+-----------------------------
 Reporter:  pavankumarp   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  4.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 1. I create an ordered list in the Visual Editor.

 2. I switch to the HTML editor so I can add a paragraph of text (or an
 image) within the ordered list, but NOT inside a list tag.

 3. I return to the Visual Editor and notice something doesn't look right.

 4. I go back to the HTML editor and see that my ordered list is now all
 messed up. Extra ordered list tags have been added that I don't want.

 Here's the code from the HTML editor BEFORE I switched back to the Visual
 Editor:

 <ol>
         <li>Ordered list item 1</li>
             Block of text inserted into list but not inside an li tag.
         <li>Ordered list item 2</li>
         <li>Ordered list item 3</li>
         <li>Ordered list item 4</li>
 </ol>

 Here's the code after switching to the Visual Editor and then back to the
 HTML editor:

 <ol>
 <ol>
         <li>Ordered list item 1</li>
 </ol>
 </ol>
 Block of text inserted into list but not inside an li tag.
 <ol>
         <li>Ordered list item 2</li>
         <li>Ordered list item 3</li>
         <li>Ordered list item 4</li>
 </ol>

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29643>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list