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

git-svn-id: http://svn.automattic.com/wordpress/trunk@19126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-11-03 01:31:27 +00:00
parent b2560a3025
commit 1fcdc41bdb
3 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -4630,6 +4630,10 @@ input.button-highlighted,
width: 98%;
}
.wp-editor-container textarea.wp-editor-area {
width: 99.9%;
}
#template div {
margin-right: 190px;
}

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');