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

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 23 21:46:15 GMT 2009


#9218: Pasting HTML in the editor fails
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  azaozz    
     Type:  defect (bug)       |       Status:  closed    
 Priority:  normal             |    Milestone:  Unassigned
Component:  Administration     |      Version:  2.7       
 Severity:  normal             |   Resolution:  wontfix   
 Keywords:                     |  
-------------------------------+--------------------------------------------
Changes (by azaozz):

  * status:  new => closed
  * resolution:  => wontfix
  * component:  TinyMCE => Administration
  * severity:  major => normal


Comment:

 Replying to [ticket:9218 Denis-de-Bernardy]:
 > In the wysiwyg editor, click HTML...

 That means you're switching to the HTML editor and are not in TinyMCE any
 more.

 In the HTML editor all line breaks are converted to `<br />` or `<p>` by
 autop, so having line break in the middle of a tag wouldn't work.

 Although this code example is valid, the HTML editor is still an editor
 that works together with autop. Even if you paste the example in the
 QuickPress module on the dashboard where no editor is used at all, it
 would still break autop.

 Possible work-around would be to add the "code" button to TinyMCE that
 would let you edit or paste arbitrary HTML code directly in the editor's
 iframe, although you will still have the browser's limitations there, or
 to turn autop off completely.

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


More information about the wp-trac mailing list