Make WordPress Core


Ignore:
Timestamp:
01/31/2008 06:10:46 PM (17 years ago)
Author:
ryan
Message:

TinyMCE 3.0 Final from azaozz. see #5674

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/tiny_mce_config.php

    r6689 r6694  
    2626    $valid_elements = apply_filters('mce_valid_elements', $valid_elements);
    2727   
    28     $invalid_elements = apply_filters('mce_invalid_elements', '');
     28    $invalid_elements = apply_filters('mce_invalid_elements', '');
    2929
    30     $plugins = array( 'safari', 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress', 'wphelp', 'media', 'fullscreen' );
     30    $plugins = array( 'safari', 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen' );
    3131    $plugins = apply_filters('mce_plugins', $plugins);
    3232    $plugins = implode($plugins, ',');
    3333
    34     $mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'justifyleft', 'justifycenter', 'justifyright', 'separator', 'link', 'unlink', 'image', 'wp_more', 'separator', 'spellchecker', 'separator', 'wp_help', 'wp_adv', 'wp_adv_start', 'wp_adv_end'));
     34    $mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'outdent', 'indent', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'link', 'unlink', 'image', 'wp_more', '|', 'spellchecker', '|', 'wp_help', 'wp_adv' ));
    3535    $mce_buttons = implode($mce_buttons, ',');
    3636
    37     $mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'underline', 'justifyfull', 'forecolor', 'media', 'separator', 'pastetext', 'pasteword', 'separator', 'removeformat', 'cleanup', 'separator', 'charmap', 'separator', 'undo', 'redo', 'fullscreen'));
     37
     38    $mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'underline', 'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword', '|', 'removeformat', 'cleanup', '|', 'media', 'charmap', 'blockquote', '|', 'undo', 'redo', 'fullscreen' ));
    3839    $mce_buttons_2 = implode($mce_buttons_2, ',');
    3940
    4041    $mce_buttons_3 = apply_filters('mce_buttons_3', array());
    4142    $mce_buttons_3 = implode($mce_buttons_3, ',');
     43   
     44    $mce_buttons_4 = apply_filters('mce_buttons_4', array());
     45    $mce_buttons_4 = implode($mce_buttons_4, ',');
    4246
    4347    $mce_browsers = apply_filters('mce_browsers', array('msie', 'gecko', 'opera', 'safari'));
    4448    $mce_browsers = implode($mce_browsers, ',');
    4549
    46     $mce_popups_css = get_option('siteurl') . '/wp-includes/js/tinymce/plugins/wordpress/popups.css';
    47     $mce_css = get_option('siteurl') . '/wp-includes/js/tinymce/plugins/wordpress/wordpress.css';
     50    $mce_css = get_option('siteurl') . '/wp-includes/js/tinymce/wordpress.css';
    4851    $mce_css = apply_filters('mce_css', $mce_css);
    49     if ( $_SERVER['HTTPS'] == 'on' ) {
     52    if ( $_SERVER['HTTPS'] == 'on' )
    5053        $mce_css = str_replace('http://', 'https://', $mce_css);
    51         $mce_popups_css = str_replace('http://', 'https://', $mce_popups_css);
    52     }
    5354
    5455    $mce_locale = ( '' == get_locale() ) ? 'en' : strtolower(get_locale());
    5556?>
    5657
    57 /*
    58 wpEditorInit = function() {
    59     // Activate tinyMCE if it's the user's default editor
    60     if ( ( 'undefined' == typeof wpTinyMCEConfig ) || 'tinymce' == wpTinyMCEConfig.defaultEditor )
    61         tinyMCE.execCommand('mceAddControl', false, 'content');
    62 };
    63 */
    64 
    65 wpEditorInit = function() {
    66     if ( ( 'undefined' != typeof wpTinyMCEConfig ) && 'tinymce' != wpTinyMCEConfig.defaultEditor )
    67         tinyMCE.get('content').hide();
    68 }
    69 
    7058initArray = {
    71     mode : "exact",
    72     elements : "content",
    73 //  editor_selector : "mceEditor",
    74     oninit : "wpEditorInit",
    75     width : "100%",
     59    mode : "none",
     60    onpageload : "wpEditorInit",
     61    width : "100%",
    7662    theme : "advanced",
    77     skin : "o2k7",
     63    skin : "wp_theme",
    7864    theme_advanced_buttons1 : "<?php echo $mce_buttons; ?>",
    7965    theme_advanced_buttons2 : "<?php echo $mce_buttons_2; ?>",
    8066    theme_advanced_buttons3 : "<?php echo $mce_buttons_3; ?>",
     67    theme_advanced_buttons4 : "<?php echo $mce_buttons_4; ?>",
    8168    language : "<?php echo $mce_locale; ?>",
    8269    theme_advanced_toolbar_location : "top",
     
    9582    remove_linebreaks : false,
    9683    fix_list_elements : true,
     84    fix_table_elements : true,
    9785    gecko_spellcheck : true,
    9886    entities : "38,amp,60,lt,62,gt",
    99     button_tile_map : false,
     87    accessibility_focus : false,
     88    tab_focus : ":next",
    10089    content_css : "<?php echo $mce_css; ?>",
    101     valid_elements : "<?php echo $valid_elements; ?>",
    102     invalid_elements : "<?php echo $invalid_elements; ?>",
    103     save_callback : 'TinyMCE_wordpressPlugin.saveCallback',
    104     imp_version : "<?php echo intval($_GET['ver']); ?>",
     90    <?php if ( $valid_elements ) echo 'valid_elements : "' . $valid_elements . '",' . "\n"; ?>
     91    <?php if ( $invalid_elements ) echo 'invalid_elements : "' . $invalid_elements . '",' . "\n"; ?>
     92    save_callback : "switchEditors.saveCallback",
    10593<?php do_action('mce_options'); ?>
    10694    plugins : "<?php echo $plugins; ?>"
     
    113101?>
    114102
    115 tinyMCE.init(initArray);
     103tinyMCE_GZ.init(initArray);
Note: See TracChangeset for help on using the changeset viewer.