TinyMCE: remove the numbers (2-6) after the headings in the drop-down. These are previews for the actual styling of headings in the editor.
See #27159. Built from https://develop.svn.wordpress.org/trunk@38939 git-svn-id: http://core.svn.wordpress.org/trunk@38882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -578,6 +578,12 @@ 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';
|
||||
}
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user