the Default Text Editor should have a media upload button?
Closed this issue · 3 comments
kujian commented
so you can upload the img or other media to the editor? do you think so?
devinsays commented
The editor should support all default media. Are you having an issue with something?
kujian commented
devinsays commented
You need to pass that option along in the settings, I'll update the example there:
$wp_editor_settings = array(
'wpautop' => true, // Default
'textarea_rows' => 5,
'media_buttons' => true
);
$options[] = array(
'name' => __('Additional Text Editor', 'options_check'),
'desc' => sprintf( __( 'This editor includes media button.', 'options_check' ), 'http://codex.wordpress.org/Function_Reference/wp_editor' ),
'id' => 'example_editor_media',
'type' => 'editor',
'settings' => $wp_editor_settings );