[wp-trac] [WordPress Trac] #36636: allow add_editor_style() to include inline style

WordPress Trac noreply at wordpress.org
Fri Apr 22 20:06:29 UTC 2016


#36636: allow add_editor_style() to include inline style
-------------------------+----------------------
 Reporter:  selnomeria   |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Editor       |     Version:  3.0
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |     Focuses:
-------------------------+----------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Agree with @swissspidy. Dynamically adding CSS to the editor iframe is
 "out of scope" for core. BTW even `add_editor_style()` is a
 helper/convenience function. The "real" way of adding more stylesheets to
 the editor is by using the `mce_css` filter (yes, the name is not that
 intuitive).

 If you want to add CSS directly to the editor, have a look at its
 settings: https://www.tinymce.com/docs/configure/content-
 appearance/#content_style. However this is not recommended for a plugin
 that will run in production on different sites. Can affect it pretty
 drastically.

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


More information about the wp-trac mailing list