Changeset 6632 for trunk/wp-includes/js/tinymce/tiny_mce_config.php
- Timestamp:
- 01/17/2008 03:44:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/tiny_mce_config.php
r6575 r6632 28 28 $invalid_elements = apply_filters('mce_invalid_elements', ''); 29 29 30 $plugins = array( 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress');30 $plugins = array( 'safari', 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress', 'media' ); 31 31 $plugins = apply_filters('mce_plugins', $plugins); 32 32 $plugins = implode($plugins, ','); 33 33 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')); 35 35 $mce_buttons = implode($mce_buttons, ','); 36 36 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')); 38 38 $mce_buttons_2 = implode($mce_buttons_2, ','); 39 39 … … 55 55 ?> 56 56 57 /* 57 58 wpEditorInit = function() { 58 59 // Activate tinyMCE if it's the user's default editor 59 60 if ( ( 'undefined' == typeof wpTinyMCEConfig ) || 'tinymce' == wpTinyMCEConfig.defaultEditor ) 60 tinyMCE.execCommand( "mceAddControl", true, 'content');61 tinyMCE.execCommand('mceAddControl', false, 'content'); 61 62 }; 63 */ 64 65 wpEditorInit = function() { 66 if ( ( 'undefined' != typeof wpTinyMCEConfig ) && 'tinymce' != wpTinyMCEConfig.defaultEditor ) 67 tinyMCE.get('content').hide(); 68 } 62 69 63 70 initArray = { 64 mode : "specific_textareas", 65 editor_selector : "mceEditor", 71 mode : "exact", 72 elements : "content", 73 // editor_selector : "mceEditor", 66 74 oninit : "wpEditorInit", 67 75 width : "100%", 68 76 theme : "advanced", 77 skin : "o2k7", 69 78 theme_advanced_buttons1 : "<?php echo $mce_buttons; ?>", 70 79 theme_advanced_buttons2 : "<?php echo $mce_buttons_2; ?>", … … 73 82 theme_advanced_toolbar_location : "top", 74 83 theme_advanced_toolbar_align : "left", 75 theme_advanced_ path_location : "bottom",84 theme_advanced_statusbar_location : "bottom", 76 85 theme_advanced_resizing : true, 77 86 browsers : "<?php echo $mce_browsers; ?>",
Note: See TracChangeset
for help on using the changeset viewer.