[wp-trac] [WordPress Trac] #14535: TinyMCE inserts font-size and line-height spans on Google Chrome when adding lists via the visual editor

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 4 19:44:30 UTC 2010


#14535: TinyMCE inserts font-size and line-height spans on Google Chrome when
adding lists via the visual editor
--------------------------+-------------------------------------------------
 Reporter:  duckpuppy     |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.0.1          
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 Steps to reproduce:[[BR]]
  1. Create a new post.  Make sure that you are using the default TwentyTen
 theme (will explain why at the end).
  2. Click the "Unordered List" button.  Add one or more list items
  3. Click the "Unordered List" button again.  Look at the code in HTML
 view.

 A sample of the result is below:
 {{{
 Testing
 <ul>
         <li>This is a test</li>
 </ul>
 <span style="font-size: medium;"><span style="line-height: 24px;">
 </span></span>
 }}}

 The reason using the default theme is important is because then you can be
 sure that the new editor styles feature is being used.  In the
 2010functions.php file, if I comment out the call to add_editor_style() in
 the twentyten_setup() function, then the problem goes away.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14535>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list