Editor: Use explicit context instead of a trailing space for Edit
string in TinyMCE plugins.
Props scottlee, ayubadiputra, NathanAtmoz. Fixes #42543. git-svn-id: https://develop.svn.wordpress.org/trunk@42523 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
505a939720
commit
6c081d396a
@ -1275,7 +1275,7 @@ final class _WP_Editors {
|
|||||||
'Distraction-free writing mode' => array( __( 'Distraction-free writing mode' ), 'accessW' ),
|
'Distraction-free writing mode' => array( __( 'Distraction-free writing mode' ), 'accessW' ),
|
||||||
'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
|
'Edit|button' => __( 'Edit' ), // Tooltip for the 'edit' button in the image toolbar
|
||||||
'Paste URL or type to search' => __( 'Paste URL or type to search' ), // Placeholder for the inline link dialog
|
'Paste URL or type to search' => __( 'Paste URL or type to search' ), // Placeholder for the inline link dialog
|
||||||
'Apply' => __( 'Apply' ), // Tooltip for the 'apply' button in the inline link dialog
|
'Apply' => __( 'Apply' ), // Tooltip for the 'apply' button in the inline link dialog
|
||||||
'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog
|
'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog
|
||||||
|
@ -18,7 +18,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
editor.addButton( 'wp_img_edit', {
|
editor.addButton( 'wp_img_edit', {
|
||||||
tooltip: 'Edit ', // trailing space is needed, used for context
|
tooltip: 'Edit|button', // '|button' is not displayed, only used for context
|
||||||
icon: 'dashicon dashicons-edit',
|
icon: 'dashicon dashicons-edit',
|
||||||
onclick: function() {
|
onclick: function() {
|
||||||
editImage( editor.selection.getNode() );
|
editImage( editor.selection.getNode() );
|
||||||
|
@ -564,7 +564,7 @@
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
editor.addButton( 'wp_link_edit', {
|
editor.addButton( 'wp_link_edit', {
|
||||||
tooltip: 'Edit ', // trailing space is needed, used for context
|
tooltip: 'Edit|button', // '|button' is not displayed, only used for context
|
||||||
icon: 'dashicon dashicons-edit',
|
icon: 'dashicon dashicons-edit',
|
||||||
cmd: 'WP_Link'
|
cmd: 'WP_Link'
|
||||||
} );
|
} );
|
||||||
|
@ -155,7 +155,7 @@
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
editor.addButton( 'wp_view_edit', {
|
editor.addButton( 'wp_view_edit', {
|
||||||
tooltip: 'Edit ', // trailing space is needed, used for context
|
tooltip: 'Edit|button', // '|button' is not displayed, only used for context
|
||||||
icon: 'dashicon dashicons-edit',
|
icon: 'dashicon dashicons-edit',
|
||||||
onclick: function() {
|
onclick: function() {
|
||||||
var node = editor.selection.getNode();
|
var node = editor.selection.getNode();
|
||||||
|
Loading…
Reference in New Issue
Block a user