Make WordPress Core

Changeset 3569


Ignore:
Timestamp:
02/24/2006 03:55:25 AM (16 years ago)
Author:
ryan
Message:

Mac meta keys from Alex King. fixes #2182

Location:
trunk/wp-includes/js/tinymce
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/langs/en.js

    r3163 r3569  
    11// UK lang variables
    22
    3 tinyMCELang['lang_bold_desc'] = 'Bold (Alt+b)';
    4 tinyMCELang['lang_italic_desc'] = 'Italic (Alt+i)';
     3if (navigator.userAgent.indexOf('Mac OS') != -1) {
     4// Mac OS browsers use Ctrl to hit accesskeys
     5    var metaKey = 'Ctrl';
     6}
     7else {
     8    var metaKey = 'Alt';
     9}
     10
     11tinyMCELang['lang_bold_desc'] = 'Bold (' + metaKey + '+b)';
     12tinyMCELang['lang_italic_desc'] = 'Italic (' + metaKey + '+i)';
    513tinyMCELang['lang_underline_desc'] = 'Underline';
    6 tinyMCELang['lang_striketrough_desc'] = 'Striketrough (Alt-d)';
    7 tinyMCELang['lang_justifyleft_desc'] = 'Align left (Alt-f)';
    8 tinyMCELang['lang_justifycenter_desc'] = 'Align center (Alt-c)';
    9 tinyMCELang['lang_justifyright_desc'] = 'Align right (Alt-r)';
     14tinyMCELang['lang_striketrough_desc'] = 'Striketrough (' + metaKey + '-d)';
     15tinyMCELang['lang_justifyleft_desc'] = 'Align left (' + metaKey + '-f)';
     16tinyMCELang['lang_justifycenter_desc'] = 'Align center (' + metaKey + '-c)';
     17tinyMCELang['lang_justifyright_desc'] = 'Align right (' + metaKey + '-r)';
    1018tinyMCELang['lang_justifyfull_desc'] = 'Align full';
    11 tinyMCELang['lang_bullist_desc'] = 'Unordered list (Alt-l)';
    12 tinyMCELang['lang_numlist_desc'] = 'Ordered list (Alt-o)';
    13 tinyMCELang['lang_outdent_desc'] = 'Outdent (Alt-w)';
    14 tinyMCELang['lang_indent_desc'] = 'Indent/Blockquote (Alt-q)';
    15 tinyMCELang['lang_undo_desc'] = 'Undo (Alt-u)';
    16 tinyMCELang['lang_redo_desc'] = 'Redo (Alt-y)';
    17 tinyMCELang['lang_link_desc'] = 'Insert/edit link (Alt-a)';
    18 tinyMCELang['lang_unlink_desc'] = 'Unlink (Alt-s)';
    19 tinyMCELang['lang_image_desc'] = 'Insert/edit image (Alt-m)';
     19tinyMCELang['lang_bullist_desc'] = 'Unordered list (' + metaKey + '-l)';
     20tinyMCELang['lang_numlist_desc'] = 'Ordered list (' + metaKey + '-o)';
     21tinyMCELang['lang_outdent_desc'] = 'Outdent (' + metaKey + '-w)';
     22tinyMCELang['lang_indent_desc'] = 'Indent/Blockquote (' + metaKey + '-q)';
     23tinyMCELang['lang_undo_desc'] = 'Undo (' + metaKey + '-u)';
     24tinyMCELang['lang_redo_desc'] = 'Redo (' + metaKey + '-y)';
     25tinyMCELang['lang_link_desc'] = 'Insert/edit link (' + metaKey + '-a)';
     26tinyMCELang['lang_unlink_desc'] = 'Unlink (' + metaKey + '-s)';
     27tinyMCELang['lang_image_desc'] = 'Insert/edit image (' + metaKey + '-m)';
    2028tinyMCELang['lang_cleanup_desc'] = 'Cleanup messy code';
    2129tinyMCELang['lang_focus_alert'] = 'A editor instance must be focused before using this command.';
  • trunk/wp-includes/js/tinymce/plugins/wordpress/langs/en.js

    r3163 r3569  
    11// EN lang variables
    22
     3if (navigator.userAgent.indexOf('Mac OS') != -1) {
     4// Mac OS browsers use Ctrl to hit accesskeys
     5    var metaKey = 'Ctrl';
     6}
     7else {
     8    var metaKey = 'Alt';
     9}
     10
    311tinyMCE.addToLang('',{
    4 wordpress_more_button : 'Split post with More tag (Alt-t)',
     12wordpress_more_button : 'Split post with More tag (' + metaKey + '-t)',
    513wordpress_page_button : 'Split post with Page tag',
    614wordpress_more_alt : 'More...',
Note: See TracChangeset for help on using the changeset viewer.