mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Make sure editor-buttons.css is loaded even if tiny_mce.js is used directly and the wp_theme skin is selected in the settings, see #17144
git-svn-id: http://svn.automattic.com/wordpress/trunk@19533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
de11d4cb22
commit
f8d2a35aaa
@ -535,6 +535,9 @@ final class _WP_Editors {
|
||||
var init, ed, qt, first_init, mce = <?php echo wp_default_editor() == 'tinymce' ? 'true' : 'false'; ?>;
|
||||
|
||||
if ( typeof(tinymce) == 'object' ) {
|
||||
// mark wp_theme/ui.css as loaded
|
||||
tinymce.DOM.files[tinymce.baseURI.getURI() + '/themes/advanced/skins/wp_theme/ui.css'] = true;
|
||||
|
||||
for ( ed in tinyMCEPreInit.mceInit ) {
|
||||
if ( first_init ) {
|
||||
init = tinyMCEPreInit.mceInit[ed] = tinymce.extend( {}, first_init, tinyMCEPreInit.mceInit[ed] );
|
||||
|
@ -1 +1,2 @@
|
||||
/* not used but cannot prevent TinyMCE loading it (for now) */
|
||||
/* not used, included for back-compat, see wp-includes/css/editor-buttons.css */
|
||||
@import url("../../../../../../css/editor-buttons.css?ver=20111114");
|
||||
|
Loading…
Reference in New Issue
Block a user