Filters the TinyMCE config before init.
Parameters
$mce_initarray- An array with TinyMCE config.
$editor_idstring- Unique editor identifier, e.g.
'content'. Accepts'classic-block'when called from block editor’s Classic block.
Source
$mce_init = apply_filters( 'tiny_mce_before_init', $mce_init, $editor_id );
Example migrated from Codex:
The following example adds custom style options to an existing Style dropdown.
Note that, by default, the Style dropdown is hidden in WordPress. To show this option, you will need to add it using the mce_buttons_2 filter and load the CSS using the mce_css hook.