[wp-trac] [WordPress Trac] #19437: Pass post type as a class to TinyMCE init

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 3 19:14:31 UTC 2011


#19437: Pass post type as a class to TinyMCE init
--------------------------+-----------------------------
 Reporter:  markjaquith   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If we pass the post type as a class to TinyMCE, editor-styles.css can
 target rules to specific post types which may be displayed differently.

 {{{
 <?php wp_editor($post->post_content, 'content', array('dfw' => true,
 'tabindex' => 1, 'tinymce' => array( 'body_class' => 'post-type-' .
 $post_type ) ) ); ?>
 }}}

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


More information about the wp-trac mailing list