Make WordPress Core

Changeset 17974


Ignore:
Timestamp:
05/19/2011 06:49:36 PM (15 years ago)
Author:
azaozz
Message:

When viewing Help in DFW, show only the shortcuts tab, see #17136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/wp-mce-help.php

    r17880 r17974  
    1515<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    1616<title><?php _e('Rich Editor Help') ?></title>
    17 <script type="text/javascript" src="tiny_mce_popup.js?ver=3223"></script>
     17<script type="text/javascript" src="tiny_mce_popup.js?ver=342"></script>
    1818<?php
    1919wp_admin_css( 'global', true );
     
    128128                border-bottom: 0px;
    129129        }
     130
     131        .mac,
     132        .macos .win {
     133                display: none;
     134        }
     135
     136        .macos span.mac {
     137                display: inline;
     138        }
     139
     140        .macwebkit tr.mac {
     141                display: table-row;
     142        }
     143       
    130144</style>
    131145<?php if ( is_rtl() ) : ?>
     
    160174        }
    161175
    162     function init() {
    163         document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
     176    tinyMCEPopup.onInit.add(function() {
     177        var win = tinyMCEPopup.getWin();
     178
     179                document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
    164180        document.getElementById('date').innerHTML = tinymce.releaseDate;
    165     }
    166     tinyMCEPopup.onInit.add(init);
     181 
     182                if ( win.fullscreen && win.fullscreen.settings.visible ) {
     183                        d('content1').className = 'hidden';
     184                        d('tabs').className = 'hidden';
     185                        d('content3').className = 'dfw';
     186                }
     187
     188                if ( tinymce.isMac )
     189                        document.body.className = 'macos';
     190               
     191                if ( tinymce.isMac && tinymce.isWebKit )
     192                        document.body.className = 'macos macwebkit';
     193
     194    });
    167195</script>
    168196</head>
     
    201229        <h2><?php _e('Writing at Full Speed') ?></h2>
    202230    <p><?php _e('Rather than reaching for your mouse to click on the toolbar, use these access keys. Windows and Linux use Ctrl + letter. Macintosh uses Command + letter.') ?></p>
     231        <p class="dfw-extra"><?php
     232
     233        printf( __('In Distraction free writing mode use %1$s to make the editor wider, %2$s to make it narrower and %3$s to reset it to the original theme width.'),
     234                '<span class="win">Alt +</span><span class="mac">Ctrl +</span>',
     235                '<span class="win">Alt -</span><span class="mac">Ctrl -</span>',
     236                '<span class="win">Alt 0</span><span class="mac">Ctrl 0</span>'
     237        );
     238
     239        ?></p>
    203240        <table class="keys" width="100%" style="border: 0 none;">
    204241                <tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr>
     
    206243                <tr><th>a</th><td><?php _e('Select all') ?></td><th>x</th><td><?php _e('Cut') ?></td></tr>
    207244                <tr><th>z</th><td><?php _e('Undo') ?></td><th>y</th><td><?php _e('Redo') ?></td></tr>
    208                 <script type="text/javascript">
    209                 if ( ! tinymce.isWebKit )
    210                         document.write("<tr><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>"+
    211                         "<tr><th>u</th><td><?php _e('Underline') ?></td><th>1</th><td><?php _e('Heading 1') ?></td></tr>"+
    212                         "<tr><th>2</th><td><?php _e('Heading 2') ?></td><th>3</th><td><?php _e('Heading 3') ?></td></tr>"+
    213                         "<tr><th>4</th><td><?php _e('Heading 4') ?></td><th>5</th><td><?php _e('Heading 5') ?></td></tr>"+
    214                         "<tr><th>6</th><td><?php _e('Heading 6') ?></td><th>9</th><td><?php _e('Address') ?></td></tr>")
    215                 </script>
     245               
     246                <tr class="win"><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>
     247                <tr class="win"><th>u</th><td><?php _e('Underline') ?></td><th>1</th><td><?php _e('Heading 1') ?></td></tr>
     248                <tr class="win"><th>2</th><td><?php _e('Heading 2') ?></td><th>3</th><td><?php _e('Heading 3') ?></td></tr>
     249                <tr class="win"><th>4</th><td><?php _e('Heading 4') ?></td><th>5</th><td><?php _e('Heading 5') ?></td></tr>
     250                <tr class="win"><th>6</th><td><?php _e('Heading 6') ?></td><th>9</th><td><?php _e('Address') ?></td></tr>
    216251        </table>
    217252
     
    219254        <table class="keys" width="100%" style="border: 0 none;">
    220255                <tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr>
    221                 <script type="text/javascript">
    222                 if ( tinymce.isWebKit )
    223                         document.write("<tr><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>")
    224                 </script>
     256                <tr class="mac"><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>
     257
    225258                <tr><th>n</th><td><?php _e('Check Spelling') ?></td><th>l</th><td><?php _e('Align Left') ?></td></tr>
    226259                <tr><th>j</th><td><?php _e('Justify Text') ?></td><th>c</th><td><?php _e('Align Center') ?></td></tr>
Note: See TracChangeset for help on using the changeset viewer.