Ticket #27159: 27159.diff
File 27159.diff, 1.9 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-editor.php
600 600 $mce_buttons = apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id ); 601 601 $mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = array(); 602 602 } else { 603 $mce_buttons = array( ' bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );603 $mce_buttons = array( 'formatselect', 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'link', 'unlink', 'wp_more', 'spellchecker' ); 604 604 605 605 if ( ! wp_is_mobile() ) { 606 606 if ( $set['_content_editor_dfw'] ) { … … 622 622 */ 623 623 $mce_buttons = apply_filters( 'mce_buttons', $mce_buttons, $editor_id ); 624 624 625 $mce_buttons_2 = array( ' formatselect', 'underline', 'alignjustify', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' );625 $mce_buttons_2 = array( 'alignleft', 'aligncenter', 'alignright', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' ); 626 626 627 627 if ( ! wp_is_mobile() ) { 628 628 $mce_buttons_2[] = 'wp_help'; … … 690 690 'toolbar3' => implode($mce_buttons_3, ','), 691 691 'toolbar4' => implode($mce_buttons_4, ','), 692 692 'tabfocus_elements' => $set['tabfocus_elements'], 693 'body_class' => $body_class 693 'body_class' => $body_class, 694 'block_formats' => 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre;' 694 695 ); 695 696 696 697 // Merge with the first part of the init array