Changeset 9389
- Timestamp:
- 10/28/2008 08:43:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
r9064 r9389 92 92 image : url + '/img/media.gif', 93 93 onclick : function() { 94 var a = tinymce.DOM.get('add-media-link'); 95 if ( a ) { 96 tb_show('', a.href); 97 tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' ); 98 } 99 } 100 }); 101 /* 94 tb_show('', tinymce.DOM.get('add_media').href); 95 tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' ); 96 } 97 }); 98 102 99 ed.addButton('add_image', { 103 100 title : 'wordpress.add_image', … … 126 123 } 127 124 }); 128 */ 125 129 126 // Add Media buttons to fullscreen 130 127 ed.onBeforeExecCommand.add(function(ed, cmd, ui, val) { 131 128 if ( 'mceFullScreen' != cmd ) return; 132 129 if ( 'mce_fullscreen' != ed.id ) 133 ed.settings.theme_advanced_buttons1 += ',|,add_ media';130 ed.settings.theme_advanced_buttons1 += ',|,add_image,add_video,add_audio,add_media'; 134 131 }); 135 132
Note: See TracChangeset
for help on using the changeset viewer.