TinyMCE: add another Edit
translatable string for the tooltip of the Edit button on the image toolbar. Props pavelevap, see #30694.
git-svn-id: https://develop.svn.wordpress.org/trunk@30839 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
950126a515
commit
276a69d6f9
@ -984,7 +984,7 @@ final class _WP_Editors {
|
|||||||
// TinyMCE menus
|
// TinyMCE menus
|
||||||
'Insert' => _x( 'Insert', 'TinyMCE menu' ),
|
'Insert' => _x( 'Insert', 'TinyMCE menu' ),
|
||||||
'File' => _x( 'File', 'TinyMCE menu' ),
|
'File' => _x( 'File', 'TinyMCE menu' ),
|
||||||
'Edit' => _x( 'Edit', 'TinyMCE menu and tooltip for the Edit button in the image toolbar' ),
|
'Edit' => _x( 'Edit', 'TinyMCE menu' ),
|
||||||
'Tools' => _x( 'Tools', 'TinyMCE menu' ),
|
'Tools' => _x( 'Tools', 'TinyMCE menu' ),
|
||||||
'View' => _x( 'View', 'TinyMCE menu' ),
|
'View' => _x( 'View', 'TinyMCE menu' ),
|
||||||
'Table' => _x( 'Table', 'TinyMCE menu' ),
|
'Table' => _x( 'Table', 'TinyMCE menu' ),
|
||||||
@ -998,6 +998,7 @@ final class _WP_Editors {
|
|||||||
'Distraction Free Writing' => __( 'Distraction Free Writing' ),
|
'Distraction Free Writing' => __( 'Distraction Free Writing' ),
|
||||||
'No alignment' => __( 'No alignment' ), // Tooltip for the 'alignnone' button in the image toolbar
|
'No alignment' => __( 'No alignment' ), // Tooltip for the 'alignnone' button in the image toolbar
|
||||||
'Remove' => __( 'Remove' ), // Tooltip for the 'remove' button in the image toolbar
|
'Remove' => __( 'Remove' ), // Tooltip for the 'remove' button in the image toolbar
|
||||||
|
'Edit ' => __( 'Edit' ), // Tooltip for the 'edit' button in the image toolbar
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,7 +22,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
editor.addButton( 'wp_img_edit', {
|
editor.addButton( 'wp_img_edit', {
|
||||||
tooltip: 'Edit',
|
tooltip: 'Edit ', // trailing space is needed, used for context
|
||||||
icon: 'dashicon dashicons-edit',
|
icon: 'dashicon dashicons-edit',
|
||||||
onclick: function() {
|
onclick: function() {
|
||||||
editImage( editor.selection.getNode() );
|
editImage( editor.selection.getNode() );
|
||||||
|
Loading…
Reference in New Issue
Block a user