WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/17/2008 03:44:05 PM (13 years ago)
Author:
ryan
Message:

TinyMCE 3.0 RC1. First cut, eexpect regressions. Props azaozz. see #5674

File:
1 edited

Legend:

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

    r6575 r6632  
    2828    $invalid_elements = apply_filters('mce_invalid_elements', '');
    2929
    30     $plugins = array('inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress');
     30    $plugins = array( 'safari', 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress', 'media' );
    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', 'formatselect', 'underline', 'justifyfull', 'forecolor', 'separator', 'pastetext', 'pasteword', 'separator', 'removeformat', 'cleanup', 'separator', 'charmap', 'separator', 'undo', 'redo', 'wp_adv_end'));
     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'));
    3535    $mce_buttons = implode($mce_buttons, ',');
    3636
    37     $mce_buttons_2 = apply_filters('mce_buttons_2', array());
     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'));
    3838    $mce_buttons_2 = implode($mce_buttons_2, ',');
    3939
     
    5555?>
    5656
     57/*
    5758wpEditorInit = function() {
    5859    // Activate tinyMCE if it's the user's default editor
    5960    if ( ( 'undefined' == typeof wpTinyMCEConfig ) || 'tinymce' == wpTinyMCEConfig.defaultEditor )
    60         tinyMCE.execCommand("mceAddControl", true, 'content');
     61        tinyMCE.execCommand('mceAddControl', false, 'content');
    6162};
     63*/
     64
     65wpEditorInit = function() {
     66    if ( ( 'undefined' != typeof wpTinyMCEConfig ) && 'tinymce' != wpTinyMCEConfig.defaultEditor )
     67        tinyMCE.get('content').hide();
     68}
    6269
    6370initArray = {
    64     mode : "specific_textareas",
    65     editor_selector : "mceEditor",
     71    mode : "exact",
     72    elements : "content",
     73//  editor_selector : "mceEditor",
    6674    oninit : "wpEditorInit",
    6775    width : "100%",
    6876    theme : "advanced",
     77    skin : "o2k7",
    6978    theme_advanced_buttons1 : "<?php echo $mce_buttons; ?>",
    7079    theme_advanced_buttons2 : "<?php echo $mce_buttons_2; ?>",
     
    7382    theme_advanced_toolbar_location : "top",
    7483    theme_advanced_toolbar_align : "left",
    75     theme_advanced_path_location : "bottom",
     84    theme_advanced_statusbar_location : "bottom",
    7685    theme_advanced_resizing : true,
    7786    browsers : "<?php echo $mce_browsers; ?>",
Note: See TracChangeset for help on using the changeset viewer.