Changeset 6694 for trunk/wp-includes/js/tinymce/tiny_mce_config.php
- Timestamp:
- 01/31/2008 06:10:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/tiny_mce_config.php
r6689 r6694 26 26 $valid_elements = apply_filters('mce_valid_elements', $valid_elements); 27 27 28 28 $invalid_elements = apply_filters('mce_invalid_elements', ''); 29 29 30 $plugins = array( 'safari', 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress', ' wphelp', 'media', 'fullscreen' );30 $plugins = array( 'safari', 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen' ); 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', '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' )); 35 35 $mce_buttons = implode($mce_buttons, ','); 36 36 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' )); 38 39 $mce_buttons_2 = implode($mce_buttons_2, ','); 39 40 40 41 $mce_buttons_3 = apply_filters('mce_buttons_3', array()); 41 42 $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, ','); 42 46 43 47 $mce_browsers = apply_filters('mce_browsers', array('msie', 'gecko', 'opera', 'safari')); 44 48 $mce_browsers = implode($mce_browsers, ','); 45 49 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'; 48 51 $mce_css = apply_filters('mce_css', $mce_css); 49 if ( $_SERVER['HTTPS'] == 'on' ) {52 if ( $_SERVER['HTTPS'] == 'on' ) 50 53 $mce_css = str_replace('http://', 'https://', $mce_css); 51 $mce_popups_css = str_replace('http://', 'https://', $mce_popups_css);52 }53 54 54 55 $mce_locale = ( '' == get_locale() ) ? 'en' : strtolower(get_locale()); 55 56 ?> 56 57 57 /*58 wpEditorInit = function() {59 // Activate tinyMCE if it's the user's default editor60 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 70 58 initArray = { 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%", 76 62 theme : "advanced", 77 skin : " o2k7",63 skin : "wp_theme", 78 64 theme_advanced_buttons1 : "<?php echo $mce_buttons; ?>", 79 65 theme_advanced_buttons2 : "<?php echo $mce_buttons_2; ?>", 80 66 theme_advanced_buttons3 : "<?php echo $mce_buttons_3; ?>", 67 theme_advanced_buttons4 : "<?php echo $mce_buttons_4; ?>", 81 68 language : "<?php echo $mce_locale; ?>", 82 69 theme_advanced_toolbar_location : "top", … … 95 82 remove_linebreaks : false, 96 83 fix_list_elements : true, 84 fix_table_elements : true, 97 85 gecko_spellcheck : true, 98 86 entities : "38,amp,60,lt,62,gt", 99 button_tile_map : false, 87 accessibility_focus : false, 88 tab_focus : ":next", 100 89 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", 105 93 <?php do_action('mce_options'); ?> 106 94 plugins : "<?php echo $plugins; ?>" … … 113 101 ?> 114 102 115 tinyMCE .init(initArray);103 tinyMCE_GZ.init(initArray);
Note: See TracChangeset
for help on using the changeset viewer.