Codex

Function Reference/add editor style

Contents

Description

Add callback for custom TinyMCE editor stylesheets.

The parameter $stylesheet is the name of the stylesheet, relative to the theme root. It also accepts an array of stylesheets. It is optional and defaults to 'editor-style.css'.

Usage

 <?php add_editor_style$stylesheet ); ?> 

Parameters

$stylesheet
(mixed) (Optional) Stylesheet name or array thereof, relative to theme root.
Default: editor-style.css

Examples

add_editor_style('custom-editor-style.css');

Notes

Change Log

Source File

add_editor_style() is located in wp-includes/theme.php.

Related

Theme Support: add_theme_support(), remove_theme_support(), current_theme_supports() add_editor_style()
Theme Features: Post Thumbnails, Navigation Menus, Widgets API, Post Formats, Custom Backgrounds, Custom Headers

See also index of Function Reference and index of Template Tags.