redeclare custom style support for editor

This commit is contained in:
Holger Könemann 2017-11-29 11:09:11 +01:00
parent e2564c2005
commit 869cade5e0
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,14 @@
* @package understrap
*/
/**
* Registers an editor stylesheet for the theme.
*/
function understrap_wpdocs_theme_add_editor_styles() {
add_editor_style( 'css/custom-editor-style.css' );
}
add_action( 'admin_init', 'understrap_wpdocs_theme_add_editor_styles' );
// Add TinyMCE style formats.
add_filter( 'mce_buttons_2', 'understrap_tiny_mce_style_formats' );