devinsays/options-framework-theme

the Default Text Editor should have a media upload button?

Closed this issue · 3 comments

so you can upload the img or other media to the editor? do you think so?

The editor should support all default media. Are you having an issue with something?

editor
thanks for your reply ,it is wordpress version 3.8.1 that the editor screenshot, and you cannot see a media upload button.

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 );