WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2010 05:14:12 AM (11 years ago)
Author:
azaozz
Message:

TinyMCE 3.3 first run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r15590 r15683  
    13671367
    13681368    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') );
    13701370        $ext_plugins = '';
    13711371    } 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' );
    13731373
    13741374        /*
     
    14611461        $mce_buttons = implode($mce_buttons, ',');
    14621462
    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' );
    14661467        $mce_buttons_2 = apply_filters('mce_buttons_2', $mce_buttons_2);
    14671468        $mce_buttons_2 = implode($mce_buttons_2, ',');
     
    16091610<script type="text/javascript">
    16101611/* <![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?>
    16151618(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');}});})();
    16161619<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.