Ticket #7232: add-media-fullscreen.patch
| File add-media-fullscreen.patch, 8.3 KB (added by , 18 years ago) |
|---|
-
wp-admin/gears-manifest.php
64 64 ?> 65 65 { 66 66 "betaManifestVersion" : 1, 67 "version" : "<?php echo $man_version; ?>_2008070 1",67 "version" : "<?php echo $man_version; ?>_20080703", 68 68 "entries" : [ 69 69 <?php echo $defaults; ?> 70 70 … … 191 191 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/toolbars.gif" }, 192 192 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/img/image.png" }, 193 193 { "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" } 195 199 ]} -
wp-admin/includes/media.php
231 231 $audio_title = __('Add Audio'); 232 232 $out = <<<EOF 233 233 234 <a href="{$image_upload_iframe_src}&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}&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}&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}&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}&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}&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}&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}&TB_iframe=true" id="add_media" class="thickbox" title='$media_title'><img src='images/media-button-other.gif' alt='$media_title' /></a> 238 238 239 239 EOF; 240 240 printf($context, $out); -
wp-includes/js/tinymce/langs/wp-langs.php
395 395 wp_page_desc:"' . mce_escape( __('Insert Page break') ) . ' (Alt+Shift+P)", 396 396 wp_help_desc:"' . mce_escape( __('Help') ) . ' (Alt+Shift+H)", 397 397 wp_more_alt:"' . mce_escape( __('More...') ) . '", 398 wp_page_alt:"' . mce_escape( __('Next page...') ) . '" 398 wp_page_alt:"' . mce_escape( __('Next page...') ) . '", 399 add_media:"' . mce_escape( __('Add Media') ) . '", 400 add_image:"' . mce_escape( __('Add an Image') ) . '", 401 add_video:"' . mce_escape( __('Add Video') ) . '", 402 add_audio:"' . mce_escape( __('Add Audio') ) . '" 399 403 }); 400 404 401 405 tinyMCE.addI18n("' . $language . '.wpeditimage",{ -
wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
89 89 cmd : 'WP_Adv' 90 90 }); 91 91 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 92 136 // Add class "alignleft", "alignright" and "aligncenter" when selecting align for images. 93 137 ed.onExecCommand.add(function( ed, cmd ) { 94 138 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
222 222 // Setup cache info 223 223 if ( $disk_cache ) { 224 224 225 $cacheKey = apply_filters('tiny_mce_version', '2008070 2');225 $cacheKey = apply_filters('tiny_mce_version', '20080703'); 226 226 227 227 foreach ( $initArray as $v ) 228 228 $cacheKey .= $v; -
wp-includes/script-loader.php
37 37 $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080702' ); 38 38 39 39 // Modify this version when tinyMCE plugins are changed. 40 $mce_version = apply_filters('tiny_mce_version', '2008070 1');40 $mce_version = apply_filters('tiny_mce_version', '20080703'); 41 41 $scripts->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version ); 42 42 43 43 $scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');