[wp-trac] [WordPress Trac] #9218: Pasting HTML in the editor fails

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 23 19:03:31 GMT 2009

#9218: Pasting HTML in the editor fails
 Reporter:  Denis-de-Bernardy  |       Owner:  azaozz    
     Type:  defect (bug)       |      Status:  new       
 Priority:  normal             |   Milestone:  Unassigned
Component:  TinyMCE            |     Version:  2.7       
 Severity:  major              |    Keywords:            
 In the wysiwyg editor, click HTML. Then paste:

 style="width: 520px; text-align: left; margin-left: auto; margin-right:
 border="1" cellpadding="2" cellspacing="2">
      <td style="text-align: center; width: 350px;"><span
 style="font-size: large;"><span
 style="font-family: Arial;">Foo</span> </span></td>
      <td style="text-align: center; font-family: Arial;"
 colspan="2" valign="undefined"><span
 style="font-size: large;">Bar</span></td>

 Basically, if there is a carriage return within a tag, rather than a
 space, TinyMCE will "fix"/break the code.

 The same applies to WP, too, btw. Pasting the same in WP without the
 wysiwyg will trigger wpautop hell. (I can't recall the ticket number, but
 I submitted it as well and it went on ignored, even after I added a

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

More information about the wp-trac mailing list