wp/wp-includes/js/tinymce/plugins/wordpress/plugin.js
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 22 8c2e4d02f4ef
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   251 		editor.execCommand( 'WP_More', 'nextpage' );
   251 		editor.execCommand( 'WP_More', 'nextpage' );
   252 	});
   252 	});
   253 
   253 
   254 	editor.addCommand( 'WP_Help', function() {
   254 	editor.addCommand( 'WP_Help', function() {
   255 		var access = tinymce.Env.mac ? __( 'Ctrl + Alt + letter:' ) : __( 'Shift + Alt + letter:' ),
   255 		var access = tinymce.Env.mac ? __( 'Ctrl + Alt + letter:' ) : __( 'Shift + Alt + letter:' ),
   256 			meta = tinymce.Env.mac ? __( 'Cmd + letter:' ) : __( 'Ctrl + letter:' ),
   256 			meta = tinymce.Env.mac ? __( '⌘ + letter:' ) : __( 'Ctrl + letter:' ),
   257 			table1 = [],
   257 			table1 = [],
   258 			table2 = [],
   258 			table2 = [],
   259 			row1 = {},
   259 			row1 = {},
   260 			row2 = {},
   260 			row2 = {},
   261 			i1 = 0,
   261 			i1 = 0,
   756 
   756 
   757 			if ( button && button.settings.tooltip ) {
   757 			if ( button && button.settings.tooltip ) {
   758 				tooltip = getTooltip( button.settings.tooltip );
   758 				tooltip = getTooltip( button.settings.tooltip );
   759 				button.settings.tooltip = tooltip;
   759 				button.settings.tooltip = tooltip;
   760 
   760 
   761 				// Override the aria label wiht the translated tooltip + shortcut.
   761 				// Override the aria label with the translated tooltip + shortcut.
   762 				if ( button._aria && button._aria.label ) {
   762 				if ( button._aria && button._aria.label ) {
   763 					button._aria.label = tooltip;
   763 					button._aria.label = tooltip;
   764 				}
   764 				}
   765 			}
   765 			}
   766 		} );
   766 		} );