Output editor-buttons.css earlier so the browser renders the editor in time, fixes #18820

git-svn-id: https://develop.svn.wordpress.org/trunk@19126 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-11-03 01:31:27 +00:00
parent 7c30a4f419
commit 6850814d97
3 changed files with 8 additions and 2 deletions

View File

@@ -95,6 +95,9 @@ class WP_Editor {
echo '<div id="wp-' . $editor_id . '-wrap" class="wp-editor-wrap ' . $switch_class . '">';
if ( empty($this->first_init) )
wp_print_styles('editor-buttons');
if ( !empty($set['editor_css']) )
echo $set['editor_css'] . "\n";
@@ -456,7 +459,6 @@ class WP_Editor {
function enqueue_scripts() {
wp_enqueue_script('word-count');
wp_enqueue_style('editor-buttons');
if ( $this->has_tinymce )
wp_enqueue_script('editor');