Make WordPress Core


Ignore:
Timestamp:
01/22/2008 06:23:46 AM (17 years ago)
Author:
ryan
Message:

Port wphelp plugin to tinyMCE 3.0. Props azaozz. see #5703

File:
1 edited

Legend:

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

    r6026 r6641  
    77<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    88<title><?php _e('Rich Editor Help') ?></title>
     9<script type="text/javascript" src="tiny_mce_popup.js"></script>
    910<?php wp_admin_css(); ?>
    1011<style type="text/css">
    1112    #wphead {
    1213        padding-top: 5px;
    13         padding-bottom: 5px;
    1414        padding-left: 15px;
    15         font-size: 90%;
     15        font-size: 80%;
    1616    }
    1717    #adminmenu {
    1818        padding-top: 2px;
    19         padding-bottom: 2px;
    2019        padding-left: 15px;
    21         font-size: 94%;
     20        font-size: 80%;
    2221    }
    2322    #user_info {
    24         margin-top: 15px;
     23        right: 5%;
     24        top: 5px;
    2525    }
    2626    h2 {
     
    3636    }
    3737    #flipper {
    38         margin: 5px 10px 3px;
    39     }
     38        margin: 0;
     39        padding: 5px 20px 10px;
     40        background-color: #fff;
     41    }
     42    * html {
     43        overflow-x: hidden;
     44        overflow-y: scroll;
     45    }
    4046    #flipper div p {
    4147        margin-top: 0.4em;
     
    7379    #buttoncontainer {
    7480        text-align: center;
     81        margin-bottom: 20px;
    7582    }
    7683    #buttoncontainer a, #buttoncontainer a:hover {
     
    107114            t = d('tab'+i.toString());
    108115            if ( n == i ) {
    109                 c.className = '';
     116                c.className = 'vizible';
    110117                t.className = 'current';
    111118            } else {
     
    115122        }
    116123    }
     124   
     125    function init() {
     126        document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
     127        document.getElementById('date').innerHTML = tinymce.releaseDate;
     128    }
     129    tinyMCEPopup.onInit.add(init);
     130   
     131    // For modal dialogs in IE
     132    if (tinymce.isIE)
     133       document.write('<base target="_self" />');
    117134</script>
    118135</head>
     
    133150    <h2><?php _e('Rich Editing Basics') ?></h2>
    134151    <p><?php _e('<em>Rich editing</em>, also called WYSIWYG for What You See Is What You Get, means your text is formatted as you type. The rich editor creates HTML code behind the scenes while you concentrate on writing. Font styles, links and images all appear approximately as they will on the internet.') ?></p>
    135     <p><?php _e('WordPress includes a rich HTML editor that works well in most web browsers used today. It is powerful but it has limitations. Pasting text from other word processors may not give the results you expect. If you do not like the way the rich editor works, you may turn it off in the Your Profile and Personal Options form, under Users in the admin menu.') ?></p>
     152    <p><?php _e('WordPress includes a rich HTML editor that works well in most web browsers used today. It is powerful but it has limitations. Pasting text from other word processors may not give the results you expect. For best compatibility, use the "Paste as Plain Text" or "Paste from Word" buttons located on the extended (second) toolbar row.') ?></p>
     153    <p><?php _e('While using the editor, most basic keyboard shortcuts work like in any other text editor. For example: Shift+Enter inserts line break, Ctrl+C = copy, Ctrl+X = cut, Ctrl+Z = undo, Ctrl+Y = redo, Ctrl+B = bold, Ctrl+I = italic, Ctrl+U = underline, etc. (on Mac use the Apple key instead of Ctrl).') ?></p>
     154    <p><?php _e('If you do not like the way the rich editor works, you may turn it off in the Your Profile and Personal Options form, under Users in the admin menu.') ?></p>
    136155</div>
    137156
     
    147166<div id="content3" class="hidden">
    148167    <h2><?php _e('Writing at Full Speed') ?></h2>
    149     <p><?php _e('Rather than reaching for your mouse to click on the toolbar, use these access keys. Windows and Linux use Alt+&lt;letter>. Macintosh uses Ctrl+&lt;letter>.') ?></p>
     168    <p><?php _e('Rather than reaching for your mouse to click on the toolbar, use these access keys. Windows and Linux use Alt+&lt;letter>. Macintosh uses Ctrl+&lt;letter>.') ?></p>
    150169    <table id="keys" width="100%" border="0">
    151170        <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>
     
    164183<div id="content4" class="hidden">
    165184    <h2><?php _e('About TinyMCE'); ?></h2>
    166     <p><?php printf(__('Version: %s'), '2.0.9') ?></p>
     185   
     186    <p><?php _e('Version:'); ?> <span id="version"></span> (<span id="date"></span>)</p>
    167187    <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="'.get_bloginfo('url').'/wp-includes/js/tinymce/license.txt" target="_blank" title="'.__('GNU Library General Public Licence').'">') ?></p>
    168     <p><?php _e('Copyright &copy; 2005, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
     188    <p><?php _e('Copyright &copy; 2003-2007, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
    169189    <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p>
    170190
Note: See TracChangeset for help on using the changeset viewer.