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:
parent
b2560a3025
commit
1fcdc41bdb
File diff suppressed because one or more lines are too long
|
@ -4630,6 +4630,10 @@ input.button-highlighted,
|
|||
width: 98%;
|
||||
}
|
||||
|
||||
.wp-editor-container textarea.wp-editor-area {
|
||||
width: 99.9%;
|
||||
}
|
||||
|
||||
#template div {
|
||||
margin-right: 190px;
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue