Ticket #38049: 38049.patch
File 38049.patch, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-editor.php
557 557 // Disable H1 in the drop-down and the menu. 558 558 'block_formats' => 559 559 'Paragraph=p;' . 560 'Heading 2=h2;' . 561 'Heading 3=h3;' . 562 'Heading 4=h4;' . 563 'Heading 5=h5;' . 564 'Heading 6=h6;' . 560 'Heading 1=h2;' . 561 'Heading 2=h3;' . 562 'Heading 3=h4;' . 565 563 'Preformatted=pre', 566 564 567 565 'end_container_on_empty_block' => true, -
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
576 576 each( editor.theme.panel.find('listbox'), function( listbox ) { 577 577 if ( listbox && listbox.settings.text === 'Paragraph' ) { 578 578 each( listbox.settings.values, function( item ) { 579 if ( item.text && labels.hasOwnProperty( item.text ) ) { 580 item.shortcut = '(' + labels[ item.text ] + ')'; 579 var label = item.text; 580 581 if ( /h\d/.test( item.value ) ) { 582 label = 'Heading ' + item.value.substr( 1 ); 581 583 } 584 585 if ( label && labels.hasOwnProperty( label ) ) { 586 item.shortcut = '(' + labels[ label ] + ')'; 587 } 582 588 } ); 583 589 } 584 590 } );