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

WordPress Trac noreply at wordpress.org
Wed Oct 29 23:27:41 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              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 I'm finding that there's no way to remove the editor stylesheets from
 `wp_editor`. The `mce_css` filter could be used to filter out the styles
 added with `get_editor_stylesheets` but nothing is passed within the
 filter to distinguish an editor that should get the editor stylesheets and
 one that shouldn't.

 I'm proposing one of two solutions:

 * Add a `theme_styles` bool to `wp_editor` to prevent
 `get_editor_stylesheets` being added to the `$mce_css` array.
 * Pass set to the `mce_css` filter so devs can filter them out.

 IMO both patches should be applied, since I see the viability of the
 setting and the future possibilities of filtering `mce_css` with some
 context on what's being filtered.

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


More information about the wp-trac mailing list