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

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 24 22:21:47 GMT 2009


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

Comment(by azaozz):

 Replying to [comment:2 Denis-de-Bernardy]:
 > Why wontfix?..

 Because it's an extremely rare case (IMHO). Don't remember seen any HTML
 editors that add line breaks in the middle of a tag and even if there are
 such editors, running HTML Tidy would fix this as well as catch errors. If
 users are pasting from  external HTML editors, I think the least they
 could do it to ensure the code is well formed and appropriately formatted.

 Also the proposed regex has to be run after normalizing line breaks
 (replacing `\r\n` and `\r` with `\n`) to work properly.

 Yes, this can be fixed at the TinyMCE level by adding the "code" button
 there that opens a popup where HTML can be entered directly. Don't see
 this as a core addition though.

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


More information about the wp-trac mailing list