Make WordPress Core

Changeset 38110


Ignore:
Timestamp:
07/20/2016 01:38:12 AM (10 years ago)
Author:
azaozz
Message:

TinyMCE: replace the editor iframe title on MacOS to fix the help shortcut.

Props afercia, azaozz.
Fixes #36863.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r38062 r38110  
    10241024                        'Words: {0}' => sprintf( __( 'Words: %s' ), '{0}' ),
    10251025                        'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' => __( 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' ) . "\n\n" . __( 'If you’re looking to paste rich content from Microsoft Word, try turning this option off. The editor will clean up text pasted from Word automatically.' ),
    1026                         'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' => __( 'Rich Text Area. Press Alt-Shift-H for help' ),
     1026                        'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' => __( 'Rich Text Area. Press Alt-Shift-H for help.' ),
     1027                        'Rich Text Area. Press Control-Option-H for help.' => __( 'Rich Text Area. Press Control-Option-H for help.' ),
    10271028                        'You have unsaved changes are you sure you want to navigate away?' => __( 'The changes you made will be lost if you navigate away from this page.' ),
    10281029                        'Your browser doesn\'t support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.' => __( 'Your browser does not support direct access to the clipboard. Please use keyboard shortcuts or your browser’s edit menu instead.' ),
  • trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

    r38039 r38110  
    579579                if ( window.getUserSetting( 'editor_plain_text_paste_warning' ) > 1 ) {
    580580                        editor.settings.paste_plaintext_inform = false;
     581                }
     582
     583                // Change the editor iframe title on MacOS, add the correct help shortcut.
     584                if ( tinymce.Env.mac ) {
     585                        tinymce.$( editor.iframeElement ).attr( 'title', __( 'Rich Text Area. Press Control-Option-H for help.' ) );
    581586                }
    582587        } );
Note: See TracChangeset for help on using the changeset viewer.