apply_filters( 'tiny_mce_before_init', array $mce_init , string $editor_id )
Filters the TinyMCE config before init.
Parameters
-
$mce_init
array -
An array with TinyMCE config.
-
$editor_id
string -
Unique editor identifier, e.g.
'content'
. Accepts'classic-block'
when called from block editor's Classic block.
Source
File: wp-includes/class-wp-editor.php
.
View all references
$mce_init = apply_filters( 'tiny_mce_before_init', $mce_init, $editor_id );
Changelog
Version | Description |
---|---|
3.3.0 | The $editor_id parameter was added. |
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
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.