You appear to be a bot. Output may be restricted
Description
Output non-latin font styles 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_non_latin_styles( $mce_init );
Parameters
- $mce_init
- ( array ) required – TinyMCE styles.
Returns
array TinyMCE styles.
Source
File name: twentytwenty/functions.php
Lines:
1 to 18 of 18
function twentytwenty_add_classic_editor_non_latin_styles( $mce_init ) { $styles = TwentyTwenty_Non_Latin_Languages::get_non_latin_css( 'classic-editor' ); // Return if there are no styles to add. if ( ! $styles ) { return $mce_init; } if ( ! isset( $mce_init['content_style'] ) ) { $mce_init['content_style'] = $styles . ' '; } else { $mce_init['content_style'] .= ' ' . $styles . ' '; } return $mce_init; }