WordPress.org

Make WordPress Core

Ticket #7232: add-media-fullscreen.patch

File add-media-fullscreen.patch, 8.3 KB (added by azaozz, 10 years ago)
  • wp-admin/gears-manifest.php

     
    6464?>
    6565{
    6666"betaManifestVersion" : 1,
    67 "version" : "<?php echo $man_version; ?>_20080701",
     67"version" : "<?php echo $man_version; ?>_20080703",
    6868"entries" : [
    6969<?php echo $defaults; ?>
    7070
     
    191191{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/toolbars.gif" },
    192192{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/img/image.png" },
    193193{ "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/img/delete.png" },
    194 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/help.gif" }
     194{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/help.gif" },
     195{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/image.gif" },
     196{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/media.gif" },
     197{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/video.gif" },
     198{ "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif" }
    195199]}
  • wp-admin/includes/media.php

     
    231231        $audio_title = __('Add Audio');
    232232        $out = <<<EOF
    233233
    234         <a href="{$image_upload_iframe_src}&amp;TB_iframe=true" class="thickbox" title='$image_title'><img src='images/media-button-image.gif' alt='$image_title' /></a>
    235         <a href="{$video_upload_iframe_src}&amp;TB_iframe=true" class="thickbox" title='$video_title'><img src='images/media-button-video.gif' alt='$video_title' /></a>
    236         <a href="{$audio_upload_iframe_src}&amp;TB_iframe=true" class="thickbox" title='$audio_title'><img src='images/media-button-music.gif' alt='$audio_title' /></a>
    237         <a href="{$media_upload_iframe_src}&amp;TB_iframe=true" class="thickbox" title='$media_title'><img src='images/media-button-other.gif' alt='$media_title' /></a>
     234        <a href="{$image_upload_iframe_src}&amp;TB_iframe=true" id="add_image" class="thickbox" title='$image_title'><img src='images/media-button-image.gif' alt='$image_title' /></a>
     235        <a href="{$video_upload_iframe_src}&amp;TB_iframe=true" id="add_video" class="thickbox" title='$video_title'><img src='images/media-button-video.gif' alt='$video_title' /></a>
     236        <a href="{$audio_upload_iframe_src}&amp;TB_iframe=true" id="add_audio" class="thickbox" title='$audio_title'><img src='images/media-button-music.gif' alt='$audio_title' /></a>
     237        <a href="{$media_upload_iframe_src}&amp;TB_iframe=true" id="add_media" class="thickbox" title='$media_title'><img src='images/media-button-other.gif' alt='$media_title' /></a>
    238238
    239239EOF;
    240240        printf($context, $out);
  • wp-includes/js/tinymce/langs/wp-langs.php

     
    395395wp_page_desc:"' . mce_escape( __('Insert Page break') ) . ' (Alt+Shift+P)",
    396396wp_help_desc:"' . mce_escape( __('Help') ) . ' (Alt+Shift+H)",
    397397wp_more_alt:"' . mce_escape( __('More...') ) . '",
    398 wp_page_alt:"' . mce_escape( __('Next page...') ) . '"
     398wp_page_alt:"' . mce_escape( __('Next page...') ) . '",
     399add_media:"' . mce_escape( __('Add Media') ) . '",
     400add_image:"' . mce_escape( __('Add an Image') ) . '",
     401add_video:"' . mce_escape( __('Add Video') ) . '",
     402add_audio:"' . mce_escape( __('Add Audio') ) . '"
    399403});
    400404
    401405tinyMCE.addI18n("' . $language . '.wpeditimage",{
  • wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js

     
    8989                                cmd : 'WP_Adv'
    9090                        });
    9191
     92                        // Add Media buttons
     93                        ed.addButton('add_media', {
     94                                title : 'wordpress.add_media',
     95                                image : url + '/img/media.gif',
     96                                onclick : function() {
     97                                        tb_show('', tinymce.DOM.get('add_media').href);
     98                                        tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
     99                                }
     100                        });
     101
     102                        ed.addButton('add_image', {
     103                                title : 'wordpress.add_image',
     104                                image : url + '/img/image.gif',
     105                                onclick : function() {
     106                                        tb_show('', tinymce.DOM.get('add_image').href);
     107                                        tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
     108                                }
     109                        });
     110
     111                        ed.addButton('add_video', {
     112                                title : 'wordpress.add_video',
     113                                image : url + '/img/video.gif',
     114                                onclick : function() {
     115                                        tb_show('', tinymce.DOM.get('add_video').href);
     116                                        tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
     117                                }
     118                        });
     119
     120                        ed.addButton('add_audio', {
     121                                title : 'wordpress.add_audio',
     122                                image : url + '/img/audio.gif',
     123                                onclick : function() {
     124                                        tb_show('', tinymce.DOM.get('add_audio').href);
     125                                        tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
     126                                }
     127                        });
     128
     129                        // Add Media buttons to fullscreen
     130            ed.onBeforeExecCommand.add(function(ed, cmd, ui, val) {
     131                        if ( 'mceFullScreen' != cmd ) return;
     132                                if ( 'mce_fullscreen' != ed.id )
     133                                        ed.settings.theme_advanced_buttons1 += ',|,add_image,add_video,add_audio,add_media';
     134                });
     135
    92136                        // Add class "alignleft", "alignright" and "aligncenter" when selecting align for images.
    93137                        ed.onExecCommand.add(function( ed, cmd ) {
    94138                                var n, bl, dom = ed.dom;
  • wp-includes/js/tinymce/tiny_mce_config.php

    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: wp-includes\js\tinymce\plugins\wordpress\img\audio.gif
    ___________________________________________________________________
    Name: svn:mime-type
       + application/octet-stream
    
    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: wp-includes\js\tinymce\plugins\wordpress\img\image.gif
    ___________________________________________________________________
    Name: svn:mime-type
       + application/octet-stream
    
    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: wp-includes\js\tinymce\plugins\wordpress\img\media.gif
    ___________________________________________________________________
    Name: svn:mime-type
       + application/octet-stream
    
    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: wp-includes\js\tinymce\plugins\wordpress\img\video.gif
    ___________________________________________________________________
    Name: svn:mime-type
       + application/octet-stream
    
     
    222222// Setup cache info
    223223if ( $disk_cache ) {
    224224
    225         $cacheKey = apply_filters('tiny_mce_version', '20080702');
     225        $cacheKey = apply_filters('tiny_mce_version', '20080703');
    226226
    227227        foreach ( $initArray as $v )
    228228                $cacheKey .= $v;
  • wp-includes/script-loader.php

     
    3737        $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080702' );
    3838
    3939        // Modify this version when tinyMCE plugins are changed.
    40         $mce_version = apply_filters('tiny_mce_version', '20080701');
     40        $mce_version = apply_filters('tiny_mce_version', '20080703');
    4141        $scripts->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version );
    4242
    4343        $scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');