Make WordPress Core


Ignore:
Timestamp:
09/19/2011 12:47:23 AM (14 years ago)
Author:
azaozz
Message:

Add TinyMCE command to handle opening of the upload/insert popup, fix the shortcut "Alt+Shift+M", fix the "image" button in DFW, fixes #17992, fixes #18697, see $17144

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-editor.php

    r18666 r18710  
    595595    <?php
    596596
    597         $media_link_type = 'image';
    598         if ( is_multisite() && ( ( ! $mu_media_buttons = get_site_option( 'mu_media_buttons' ) ) || empty( $mu_media_buttons['image'] ) ) )
    599             $media_link_type = 'media';
    600 
    601597        $buttons = array(
    602598            // format: title, onclick, show in both editors
     
    608604            '1' => 'separator',
    609605            'blockquote' => array( 'title' => __('Blockquote (Alt+Shift+Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ),
    610             'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "jQuery('#add_{$media_link_type}').click();", 'both' => true ),
     606            'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "fullscreen.medialib();", 'both' => true ),
    611607            '2' => 'separator',
    612608            'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'onclick' => 'fullscreen.link();', 'both' => true ),
Note: See TracChangeset for help on using the changeset viewer.