Filters the comma-delimited list of stylesheets to load in TinyMCE.
Parameters
$stylesheets
string- Comma-delimited list of stylesheets.
Source
$mce_css = trim( apply_filters( 'mce_css', $mce_css ), ' ,' );
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
Example Migrated from Codex:
Add a plugin stylesheet for TinyMCE.
Example Migrated from Codex:
Add a Google Fonts CSS stylesheet.
Because mce_css is a comma-separated string of values, you cannot use the default href string from a source like Google Fonts if it contains multiple faces (e.g., ‘http://fonts.googleapis.com/css?family=Lato:300,400,700’). You must replace the commas with their URL-encoded equivalent, ‘%2C’.