[wp-trac] [WordPress Trac] #30187: Ability to not apply editor stylesheets to wp_editor

WordPress Trac noreply at wordpress.org
Fri Oct 31 20:23:13 UTC 2014


#30187: Ability to not apply editor stylesheets to wp_editor
-------------------------+---------------------------------
 Reporter:  dancameron   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  TinyMCE      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  ui, administration
-------------------------+---------------------------------

Comment (by jbrinley):

 Unfortunately, I don't think that's going to accomplish what you're
 hoping, @dancameron. The `mce_css` filter only runs on the first editor
 instantiated for the page load. All the other editors just inherit the CSS
 from that one. If you want to apply different stylesheets to a single
 editor, you have to mess about in then tinymce initialization on the
 client side. I've done so by printing scripts at `wp_tiny_mce_init` and
 using said script to edit the `tinyMCEPreInit.mceInit` array so that I can
 manage the initialization of my editors independently of the global
 initialization.

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


More information about the wp-trac mailing list