Changeset 38939
- Timestamp:
- 10/26/2016 01:41:46 AM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r38932 r38939 840 840 841 841 'Headings' => _x( 'Headings', 'TinyMCE' ), 842 'Heading' => _x( 'Heading', 'TinyMCE' ), 842 843 'Heading 1' => array( __( 'Heading 1' ), 'access1' ), 843 844 'Heading 2' => array( __( 'Heading 2' ), 'access2' ), -
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r38897 r38939 579 579 if ( item.text && labels.hasOwnProperty( item.text ) ) { 580 580 item.shortcut = '(' + labels[ item.text ] + ')'; 581 582 // Drop the numbers after the labels for headings. 583 // TinyMCE makes previews for the h1-h6. It uses the same styles that are applied in the editor body. 584 if ( item.text.indexOf( 'Heading' ) !== -1 ) { 585 item.text = 'Heading'; 586 } 581 587 } 582 588 } );
Note: See TracChangeset
for help on using the changeset viewer.