Ticket #27159: 27159.2.diff
File 27159.2.diff, 2.1 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-editor.php
546 546 // Limit the preview styles in the menu/toolbar 547 547 'preview_styles' => 'font-family font-size font-weight font-style text-decoration text-transform', 548 548 549 // Disable H1 in the drop-down and the menu. 550 'block_formats' => 551 'Paragraph=p;' . 552 'Heading 2=h2;' . 553 'Heading 3=h3;' . 554 'Heading 4=h4;' . 555 'Heading 5=h5;' . 556 'Heading 6=h6;' . 557 'Preformatted=pre', 558 549 559 'end_container_on_empty_block' => true, 550 560 'wpeditimage_disable_captions' => $no_captions, 551 561 'wpeditimage_html5_captions' => current_theme_supports( 'html5', 'caption' ), … … 600 610 $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 611 $mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = array(); 602 612 } else { 603 $mce_buttons = array( ' bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );613 $mce_buttons = array( 'formatselect', 'bold', 'italic', 'bullist', 'numlist', 'blockquote', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' ); 604 614 605 615 if ( ! wp_is_mobile() ) { 606 616 if ( $set['_content_editor_dfw'] ) { … … 622 632 */ 623 633 $mce_buttons = apply_filters( 'mce_buttons', $mce_buttons, $editor_id ); 624 634 625 $mce_buttons_2 = array( ' formatselect', 'underline', 'alignjustify', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' );635 $mce_buttons_2 = array( 'strikethrough', 'hr', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' ); 626 636 627 637 if ( ! wp_is_mobile() ) { 628 638 $mce_buttons_2[] = 'wp_help';