TinyMCE: don't load unneeded CSS (custom styles have moved to /themes/advanced/skins/wp_theme)
git-svn-id: https://develop.svn.wordpress.org/trunk@10338 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
89a00376b4
commit
ee141fe280
|
@ -1118,9 +1118,6 @@ function wp_tiny_mce( $teeny = false ) {
|
||||||
|
|
||||||
$baseurl = includes_url('js/tinymce');
|
$baseurl = includes_url('js/tinymce');
|
||||||
|
|
||||||
$mce_css = $baseurl . '/wordpress.css';
|
|
||||||
$mce_css = apply_filters('mce_css', $mce_css);
|
|
||||||
|
|
||||||
$mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); // only ISO 639-1
|
$mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); // only ISO 639-1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1268,12 +1265,16 @@ function wp_tiny_mce( $teeny = false ) {
|
||||||
'entities' => '38,amp,60,lt,62,gt',
|
'entities' => '38,amp,60,lt,62,gt',
|
||||||
'accessibility_focus' => true,
|
'accessibility_focus' => true,
|
||||||
'tab_focus' => ':prev,:next',
|
'tab_focus' => ':prev,:next',
|
||||||
'content_css' => "$mce_css",
|
|
||||||
'save_callback' => 'switchEditors.saveCallback',
|
'save_callback' => 'switchEditors.saveCallback',
|
||||||
'wpeditimage_disable_captions' => $no_captions,
|
'wpeditimage_disable_captions' => $no_captions,
|
||||||
'plugins' => "$plugins"
|
'plugins' => "$plugins"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$mce_css = apply_filters('mce_css', '');
|
||||||
|
|
||||||
|
if ( ! empty($mce_css) )
|
||||||
|
$initArray['content_css'] = "$mce_css";
|
||||||
|
|
||||||
// For people who really REALLY know what they're doing with TinyMCE
|
// For people who really REALLY know what they're doing with TinyMCE
|
||||||
// You can modify initArray to add, remove, change elements of the config before tinyMCE.init
|
// You can modify initArray to add, remove, change elements of the config before tinyMCE.init
|
||||||
// Setting "valid_elements", "invalid_elements" and "extended_valid_elements" can be done through "tiny_mce_before_init".
|
// Setting "valid_elements", "invalid_elements" and "extended_valid_elements" can be done through "tiny_mce_before_init".
|
||||||
|
|
Loading…
Reference in New Issue