TinyMCE: fix the text in the keyboard shortcuts modal for the changed patterns.

See #31441.

git-svn-id: https://develop.svn.wordpress.org/trunk@33501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-07-29 21:06:13 +00:00
parent 1e2fdf5bc8
commit b1933f53dc
2 changed files with 11 additions and 2 deletions

View File

@ -1054,6 +1054,8 @@ final class _WP_Editors {
__( 'To move focus to other buttons use Tab or the arrow keys. To return focus to the editor press Escape or use one of the buttons.' ), __( 'To move focus to other buttons use Tab or the arrow keys. To return focus to the editor press Escape or use one of the buttons.' ),
'When starting a new paragraph with one of these patterns followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.' => 'When starting a new paragraph with one of these patterns followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.' =>
__( 'When starting a new paragraph with one of these patterns followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.' ), __( 'When starting a new paragraph with one of these patterns followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.' ),
'The following patterns are replaced on pressing Enter at the end of the paragraph. Press the Undo button to undo.' =>
__( 'The following patterns are replaced on pressing Enter at the end of the paragraph. Press the Undo button to undo.' ),
); );
/** /**

View File

@ -269,8 +269,15 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
html = html + html = html +
'<h2>' + __( 'When starting a new paragraph with one of these patterns followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.' ) + '</h2>' + '<h2>' + __( 'When starting a new paragraph with one of these patterns followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.' ) + '</h2>' +
'<table>' + '<table>' +
tr({ '*</kbd>&nbsp;<kbd>-': 'Bullet list' }) + tr({ '*': 'Bullet list' }) +
tr({ '1.</kbd>&nbsp;<kbd>1)': 'Numbered list' }) + tr({ '-': 'Bullet list' }) +
tr({ '1.': 'Numbered list' }) +
tr({ '1)': 'Numbered list' }) +
'</table>';
html = html +
'<h2>' + __( 'The following patterns are replaced on pressing Enter at the end of the paragraph. Press the Undo button to undo.' ) + '</h2>' +
'<table>' +
tr({ '>': 'Blockquote' }) + tr({ '>': 'Blockquote' }) +
tr({ '##': 'Heading 2' }) + tr({ '##': 'Heading 2' }) +
tr({ '###': 'Heading 3' }) + tr({ '###': 'Heading 3' }) +