[wp-trac] [WordPress Trac] #30187: Ability to not apply editor stylesheets to wp_editor
WordPress Trac
noreply at wordpress.org
Sat Nov 1 23:48:27 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 azaozz):
To be able to properly do this we would need to (somewhat) refactor
WP_Editors. Currently it is geared towards adding the same editor as on
the Edit Post screen somewhere else. Would need to make it work better for
multiple instances of TinyMCE.
One way to accomplish removing of additional stylesheets without needing
extra filters would be to hook into `'wp_editor_settings'`, check if it is
the desired instance, then add a filter on `'tiny_mce_before_init'` where
the `content_css` setting can be emptied/tweaked.
Another way is to do the same from JS using the `'wp_tiny_mce_init'`
action.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30187#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list