[wp-trac] [WordPress Trac] #28291: Tinmyce font-family, background-color, Styling - inherit

WordPress Trac noreply at wordpress.org
Mon Aug 25 23:02:37 UTC 2014


#28291: Tinmyce font-family, background-color, Styling - inherit
-----------------------------+-------------------------
 Reporter:  Stagger Lee      |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  TinyMCE          |     Version:  3.9.1
 Severity:  normal           |  Resolution:  worksforme
 Keywords:                   |     Focuses:
-----------------------------+-------------------------

Comment (by Stagger Lee):

 Found an easy solution. But very, very difficult to Google it.

 In code responsible to call editor in comments i added this:


 {{{
 'tinymce' => array(
             'plugins' => $mce_plugins,
             'content_css' => get_stylesheet_directory_uri() . '/editor-
 style-comments.css'
                         )
 }}}


 {{{
 wp_editor( '', 'comment', array(
     'textarea_rows' => 10,
     'teeny' => true,
     'quicktags' => true,
     'media_buttons' => false,
         'tinymce' => array(
             'plugins' => $mce_plugins,
             'content_css' => get_stylesheet_directory_uri() . '/editor-
 style-comments.css'
                         )
 }}}

 Then just copied all lines from content-min.css and changed what i need.

 As you can see even Justin Tadlock has problems with this.
 http://wordpress.org/support/topic/customdynamic-css-in-tinymce?replies=18

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28291#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list