Changeset 15683 for trunk/wp-admin/includes/post.php
- Timestamp:
- 10/02/2010 05:14:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r15590 r15683 1367 1367 1368 1368 if ( $teeny ) { 1369 $plugins = apply_filters( 'teeny_mce_plugins', array(' safari', 'inlinepopups', 'media', 'fullscreen', 'wordpress') );1369 $plugins = apply_filters( 'teeny_mce_plugins', array('inlinepopups', 'media', 'fullscreen', 'wordpress') ); 1370 1370 $ext_plugins = ''; 1371 1371 } else { 1372 $plugins = array( ' safari', 'inlinepopups', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen', 'wpeditimage', 'wpgallery', 'tabfocus' );1372 $plugins = array( 'inlinepopups', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen', 'wpeditimage', 'wpgallery', 'tabfocus' ); 1373 1373 1374 1374 /* … … 1461 1461 $mce_buttons = implode($mce_buttons, ','); 1462 1462 1463 $mce_buttons_2 = array('formatselect', 'underline', 'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'media', 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo', 'wp_help' ); 1464 if ( is_multisite() ) 1465 unset( $mce_buttons_2[ array_search( 'media', $mce_buttons_2 ) ] ); 1463 $mce_buttons_2 = array('formatselect', 'underline', 'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword', 'removeformat', '|' ); 1464 if ( ! is_multisite() ) 1465 $mce_buttons_2[] = 'media'; 1466 array_push( $mce_buttons_2, 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo', 'wp_help' ); 1466 1467 $mce_buttons_2 = apply_filters('mce_buttons_2', $mce_buttons_2); 1467 1468 $mce_buttons_2 = implode($mce_buttons_2, ','); … … 1609 1610 <script type="text/javascript"> 1610 1611 /* <![CDATA[ */ 1611 <?php if ( $ext_plugins ) echo "$ext_plugins\n"; ?> 1612 <?php if ( $compressed ) { ?> 1613 tinyMCEPreInit.go(); 1614 <?php } else { ?> 1612 <?php 1613 if ( $ext_plugins ) 1614 echo "$ext_plugins\n"; 1615 1616 if ( ! $compressed ) { 1617 ?> 1615 1618 (function(){var t=tinyMCEPreInit,sl=tinymce.ScriptLoader,ln=t.mceInit.language,th=t.mceInit.theme,pl=t.mceInit.plugins;sl.markDone(t.base+'/langs/'+ln+'.js');sl.markDone(t.base+'/themes/'+th+'/langs/'+ln+'.js');sl.markDone(t.base+'/themes/'+th+'/langs/'+ln+'_dlg.js');tinymce.each(pl.split(','),function(n){if(n&&n.charAt(0)!='-'){sl.markDone(t.base+'/plugins/'+n+'/langs/'+ln+'.js');sl.markDone(t.base+'/plugins/'+n+'/langs/'+ln+'_dlg.js');}});})(); 1616 1619 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.