[wp-trac] [WordPress Trac] #11512: Allow themes to provide a stylesheet for use within the rich text editor
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 21 09:17:18 UTC 2009
#11512: Allow themes to provide a stylesheet for use within the rich text editor
-----------------------------+----------------------------------------------
Reporter: caesarsgrunt | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone: 3.0
Component: Editor | Version: 2.9
Severity: normal | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Comment(by caesarsgrunt):
For what it's worth, the code to do this from within functions.php is this
:
{{{
function ym_mce_css($content) {
return get_bloginfo('stylesheet_directory').'/admin/mce.css';
}
add_filter('mce_css', 'ym_mce_css');
}}}
But it would be nice if WP detected mce.css automatically, to raise
awareness of the ability to do this and make it more widespread. The rich
editor is an important thing to theme.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11512#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list