Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r18316 r17102  
    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=342"></script>
     17<script type="text/javascript" src="tiny_mce_popup.js?ver=3223"></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        
    144130</style>
    145131<?php if ( is_rtl() ) : ?>
     
    174160        }
    175161
    176     tinyMCEPopup.onInit.add(function() {
    177         var win = tinyMCEPopup.getWin();
    178 
    179                 document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
     162    function init() {
     163        document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
    180164        document.getElementById('date').innerHTML = tinymce.releaseDate;
    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     });
     165    }
     166    tinyMCEPopup.onInit.add(init);
    195167</script>
    196168</head>
    197169<body>
     170
     171<div id="wphead"><h1><?php echo get_bloginfo('blogtitle'); ?></h1></div>
    198172
    199173<ul id="tabs">
     
    229203        <h2><?php _e('Writing at Full Speed') ?></h2>
    230204    <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 
    232205        <table class="keys" width="100%" style="border: 0 none;">
    233206                <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>
     
    235208                <tr><th>a</th><td><?php _e('Select all') ?></td><th>x</th><td><?php _e('Cut') ?></td></tr>
    236209                <tr><th>z</th><td><?php _e('Undo') ?></td><th>y</th><td><?php _e('Redo') ?></td></tr>
    237 
    238                 <tr class="win"><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>
    239                 <tr class="win"><th>u</th><td><?php _e('Underline') ?></td><th>1</th><td><?php _e('Heading 1') ?></td></tr>
    240                 <tr class="win"><th>2</th><td><?php _e('Heading 2') ?></td><th>3</th><td><?php _e('Heading 3') ?></td></tr>
    241                 <tr class="win"><th>4</th><td><?php _e('Heading 4') ?></td><th>5</th><td><?php _e('Heading 5') ?></td></tr>
    242                 <tr class="win"><th>6</th><td><?php _e('Heading 6') ?></td><th>9</th><td><?php _e('Address') ?></td></tr>
     210                <script type="text/javascript">
     211                if ( ! tinymce.isWebKit )
     212                        document.write("<tr><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>"+
     213                        "<tr><th>u</th><td><?php _e('Underline') ?></td><th>1</th><td><?php _e('Heading 1') ?></td></tr>"+
     214                        "<tr><th>2</th><td><?php _e('Heading 2') ?></td><th>3</th><td><?php _e('Heading 3') ?></td></tr>"+
     215                        "<tr><th>4</th><td><?php _e('Heading 4') ?></td><th>5</th><td><?php _e('Heading 5') ?></td></tr>"+
     216                        "<tr><th>6</th><td><?php _e('Heading 6') ?></td><th>9</th><td><?php _e('Address') ?></td></tr>")
     217                </script>
    243218        </table>
    244219
     
    246221        <table class="keys" width="100%" style="border: 0 none;">
    247222                <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>
    248                 <tr class="mac"><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>
    249 
     223                <script type="text/javascript">
     224                if ( tinymce.isWebKit )
     225                        document.write("<tr><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>")
     226                </script>
    250227                <tr><th>n</th><td><?php _e('Check Spelling') ?></td><th>l</th><td><?php _e('Align Left') ?></td></tr>
    251228                <tr><th>j</th><td><?php _e('Justify Text') ?></td><th>c</th><td><?php _e('Align Center') ?></td></tr>
     
    257234                <tr><th>p</th><td><?php _e('Insert Page Break tag') ?></td><th>h</th><td><?php _e('Help') ?></td></tr>
    258235                <tr><th>e</th><td colspan="3"><?php _e('Switch to HTML mode') ?></td></tr>
    259 
    260                 <tr><th colspan="4" style="font-weight: normal;padding: 15px 10px 10px;"><?php _e('Editor width in Distraction-free writing mode:'); ?></th></tr>
    261                 <tr><th><span class="win">Alt +</span><span class="mac">Ctrl +</span></th><td><?php _e('Wider') ?></td>
    262                         <th><span class="win">Alt -</span><span class="mac">Ctrl -</span></th><td><?php _e('Narrower') ?></td></tr>
    263                 <tr><th><span class="win">Alt 0</span><span class="mac">Ctrl 0</span></th><td><?php _e('Default width') ?></td><th></th><td></td></tr>
    264236        </table>
    265237</div>
     
    269241
    270242    <p><?php _e('Version:'); ?> <span id="version"></span> (<span id="date"></span>)</p>
    271         <p><?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor released as Open Source under %sLGPL</a> by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '<a href="'.home_url('/wp-includes/js/tinymce/license.txt').'" target="_blank" title="'.esc_attr__('GNU Library General Public Licence').'">') ?></p>
    272         <p><?php _e('Copyright &copy; 2003-2011, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
     243        <p><?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under %sLGPL</a> by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '<a href="'.home_url('/wp-includes/js/tinymce/license.txt').'" target="_blank" title="'.esc_attr__('GNU Library General Public Licence').'">') ?></p>
     244        <p><?php _e('Copyright &copy; 2003-2007, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
    273245        <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p>
    274246
    275247        <div id="buttoncontainer">
    276                 <a href="http://www.moxiecode.com" target="_blank"><img src="themes/advanced/img/gotmoxie.png" alt="<?php _e('Got Moxie?') ?>" style="border: 0" /></a>
     248                <a href="http://www.moxiecode.com" target="_blank"><img src="themes/advanced/img/gotmoxie.png" alt="<?php _e('Got Moxie?') ?>" style="border: none;" /></a>
     249                <a href="http://sourceforge.net/projects/tinymce/" target="_blank"><img src="themes/advanced/img/sflogo.png" alt="<?php _e('Hosted By Sourceforge') ?>" style="border: none;" /></a>
     250                <a href="http://www.freshmeat.net/projects/tinymce" target="_blank"><img src="themes/advanced/img/fm.gif" alt="<?php _e('Also on freshmeat') ?>" style="border: none;" /></a>
    277251        </div>
    278252
Note: See TracChangeset for help on using the changeset viewer.