How to create wp_editor Instance in WordPress
The WordPress wp_editor is a brand-new publishing experience.WordPress + TinyMCE This extends the buttons on the Visual Editor toolbar.
That you check out the wp-includes/class-wp-editor.php file (specifically the editor_settings function on line 126) in order to understand how WP parses the settings you use inside the wp_editor() function.
wp_editor(
$distribution,
'distribution',
array(
'media_buttons' => false,
'textarea_rows' => 8,
'tabindex' => 4,
'tinymce' => array(
'theme_advanced_buttons1' => 'strong,em,del,ul,ol,li,block,close',
),
)
);
=== OR ===
$content = '';
$editor_id = 'mycustomeditor';
$settings = array( 'quicktags'=>array('buttons' => 'strong,em,del,ul,ol,li,block,close'),'textarea_name' => 'address');
wp_editor( $content, $editor_id, $settings );