You appear to be a bot. Output may be restricted
Description
Output Customizer settings in the classic editor.
Adds styles to the head of the TinyMCE iframe. Kudos to @Otto42 for the original solution.
Usage
$array = twentytwenty_add_classic_editor_customizer_styles( $mce_init );
Parameters
- $mce_init
- ( array ) required – TinyMCE styles.
Returns
array TinyMCE styles.
Source
File name: twentytwenty/functions.php
Lines:
1 to 13 of 13
function twentytwenty_add_classic_editor_customizer_styles( $mce_init ) { $styles = twentytwenty_get_customizer_css( 'classic-editor' ); if ( ! isset( $mce_init['content_style'] ) ) { $mce_init['content_style'] = $styles . ' '; } else { $mce_init['content_style'] .= ' ' . $styles . ' '; } return $mce_init; }