redeclare custom style support for editor
This commit is contained in:
parent
e2564c2005
commit
869cade5e0
|
@ -5,6 +5,14 @@
|
||||||
* @package understrap
|
* @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 TinyMCE style formats.
|
||||||
add_filter( 'mce_buttons_2', 'understrap_tiny_mce_style_formats' );
|
add_filter( 'mce_buttons_2', 'understrap_tiny_mce_style_formats' );
|
||||||
|
|
||||||
|
|
Reference in New Issue