[wp-trac] [WordPress Trac] #13288: Shortcodes getting wrapped with a "p" tag by rich editor

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 29 13:15:43 UTC 2012


#13288: Shortcodes getting wrapped with a "p" tag by rich editor
--------------------------+----------------------
 Reporter:  aizatto       |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Shortcodes    |     Version:
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |
--------------------------+----------------------

Comment (by nacin):

 Replying to [comment:5 azaozz]:
 > Even if we remove the <p> around a shortcode, TinyMCE will wrap it in
 another <p> as it forces base blocks on cleanup. Seems the proper thing to
 do is to always run the content through `shortcode_unautop()` on display
 even if wpautop is not used.

 There is really no way to prevent TinyMCE from munging this?

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


More information about the wp-trac mailing list