TinyMCE: revert removing the numbers (2-6) after the headings in the drop-down. Seems it causes more confusion.

See #27159.

git-svn-id: https://develop.svn.wordpress.org/trunk@38946 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2016-10-26 06:15:54 +00:00
parent 17477665c1
commit 9b8697aea3
2 changed files with 0 additions and 7 deletions

View File

@ -839,7 +839,6 @@ final class _WP_Editors {
'Formats' => _x( 'Formats', 'TinyMCE' ),
'Headings' => _x( 'Headings', 'TinyMCE' ),
'Heading' => _x( 'Heading', 'TinyMCE' ),
'Heading 1' => array( __( 'Heading 1' ), 'access1' ),
'Heading 2' => array( __( 'Heading 2' ), 'access2' ),
'Heading 3' => array( __( 'Heading 3' ), 'access3' ),

View File

@ -578,12 +578,6 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
each( listbox.settings.values, function( item ) {
if ( item.text && labels.hasOwnProperty( item.text ) ) {
item.shortcut = '(' + labels[ item.text ] + ')';
// Drop the numbers after the labels for headings.
// TinyMCE makes previews for the h1-h6. It uses the same styles that are applied in the editor body.
if ( item.text.indexOf( 'Heading' ) !== -1 ) {
item.text = 'Heading';
}
}
} );
}