Changeset 7147 for trunk/wp-includes/js/tinymce/tiny_mce_config.php
- Timestamp:
- 03/04/2008 12:07:29 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/js/tinymce/tiny_mce_config.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/tiny_mce_config.php
r7025 r7147 83 83 $mce_buttons = implode($mce_buttons, ','); 84 84 85 $mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'underline', 'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword', ' |', 'removeformat', 'cleanup', '|', 'media', 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo', 'wp_help' ));85 $mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'underline', 'justifyfull', 'forecolor', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'media', 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo', 'wp_help' )); 86 86 $mce_buttons_2 = implode($mce_buttons_2, ','); 87 87 … … 115 115 'remove_script_host' => false, 116 116 'fix_list_elements' => true, 117 //'fix_table_elements' => true,117 'fix_table_elements' => true, 118 118 'gecko_spellcheck' => true, 119 119 'entities' => '38,amp,60,lt,62,gt', … … 124 124 'plugins' => "$plugins", 125 125 // pass-through the settings for compression and caching, so they can be changed with "tiny_mce_before_init" 126 'disk_cache' => false,126 'disk_cache' => true, 127 127 'compress' => true, 128 128 'old_cache_max' => '1' // number of cache files to keep … … 142 142 ob_end_clean(); 143 143 144 /*145 // Do we need to support this? Most likely will break TinyMCE 3...146 ob_start();147 do_action('tinymce_before_init');148 $mce_deprecated2 = ob_get_contents() || '';149 ob_end_clean();150 */151 152 144 // Settings for the gzip compression and cache 153 $cache_path = dirname(__FILE__); // ABSPATH . 'wp-content/uploads/js_cache'; // Cache path, this is where the .gz files will be stored154 $cache_ext = '.js';155 156 145 $disk_cache = ( ! isset($initArray['disk_cache']) || false == $initArray['disk_cache'] ) ? false : true; 157 146 $compress = ( ! isset($initArray['compress']) || false == $initArray['compress'] ) ? false : true; … … 163 152 $isIE5 = ( ( $msie = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') ) && ( (int) substr( $_SERVER['HTTP_USER_AGENT'], $msie + 5, 3 ) < 6 ) ) ? true : false; 164 153 if ( $isIE5 ) $compress = false; 154 155 // Cache path, this is where the .gz files will be stored 156 $cache_path = ABSPATH . 'wp-content/uploads/js_cache'; 157 if ( $disk_cache && ! is_dir($cache_path) ) 158 $disk_cache = mkdir($cache_path); 159 160 $cache_ext = '.js'; 165 161 166 162 $plugins = explode( ',', $initArray['plugins'] ); … … 180 176 181 177 // Setup cache info 182 if ( $disk_cache && $cache_path) {178 if ( $disk_cache ) { 183 179 184 180 $ver = isset($_GET['ver']) ? (int) $_GET['ver'] : ''; … … 232 228 233 229 // Add external plugins and init 234 $content .= $ext_plugins . 'tinyMCE.init({' . $mce_options . '});'; // $mce_deprecated2 .230 $content .= $ext_plugins . 'tinyMCE.init({' . $mce_options . '});'; 235 231 236 232 // Generate GZIP'd content … … 244 240 245 241 // Write file 246 if ( '' != $cacheKey && $cache_path) {242 if ( '' != $cacheKey ) { 247 243 if ( $old_cache_max ) { 248 244 $keys_file = $cache_path . '/tinymce_compressed' . $cache_ext . '_key';
Note: See TracChangeset
for help on using the changeset viewer.