Skip to content

Commit 6850814

Browse files
committed
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
1 parent 7c30a4f commit 6850814

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

wp-admin/css/wp-admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-admin/css/wp-admin.dev.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4630,6 +4630,10 @@ input.button-highlighted,
46304630
width: 98%;
46314631
}
46324632

4633+
.wp-editor-container textarea.wp-editor-area {
4634+
width: 99.9%;
4635+
}
4636+
46334637
#template div {
46344638
margin-right: 190px;
46354639
}

wp-includes/class-wp-editor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ function editor( $content, $editor_id, $settings = array() ) {
9595

9696
echo '<div id="wp-' . $editor_id . '-wrap" class="wp-editor-wrap ' . $switch_class . '">';
9797

98+
if ( empty($this->first_init) )
99+
wp_print_styles('editor-buttons');
100+
98101
if ( !empty($set['editor_css']) )
99102
echo $set['editor_css'] . "\n";
100103

@@ -456,7 +459,6 @@ function wp_default_editor() {
456459

457460
function enqueue_scripts() {
458461
wp_enqueue_script('word-count');
459-
wp_enqueue_style('editor-buttons');
460462

461463
if ( $this->has_tinymce )
462464
wp_enqueue_script('editor');

0 commit comments

Comments
 (0)