]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-includes/js/tinymce/wp-mce-help.php
Wordpress 2.3.2
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / wp-mce-help.php
1 <?php require_once('../../../wp-config.php');
2 header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
3 ?>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
6 <head>
7 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
8 <title><?php _e('Rich Editor Help') ?></title>
9 <?php wp_admin_css(); ?>
10 <style type="text/css">
11         #wphead {
12                 padding-top: 5px;
13                 padding-bottom: 5px;
14                 padding-left: 15px;
15                 font-size: 90%;
16         }
17         #adminmenu {
18                 padding-top: 2px;
19                 padding-bottom: 2px;
20                 padding-left: 15px;
21                 font-size: 94%;
22         }
23         #user_info {
24                 margin-top: 15px;
25         }
26         h2 {
27                 font-size: 2em;
28                 border-bottom-width: .5em;
29                 margin-top: 12px;
30                 margin-bottom: 2px;
31         }
32         h3 {
33                 font-size: 1.1em;
34                 margin-top: 20px;
35                 margin-bottom: 0px;
36         }
37         #flipper {
38                 margin: 5px 10px 3px;
39         }
40         #flipper div p {
41                 margin-top: 0.4em;
42                 margin-bottom: 0.8em;
43                 text-align: justify;
44         }
45         th {
46                 text-align: center;
47         }
48         .top th {
49                 text-decoration: underline;
50         }
51         .top .key {
52                 text-align: center;
53                 width: 36px;
54         }
55         .top .action {
56                 text-align: left;
57         }
58         .align {
59                 border-left: 3px double #333;
60                 border-right: 3px double #333;
61         }
62         #keys p {
63                 display: inline-block;
64                 margin: 0px;
65                 padding: 0px;
66         }
67         #keys .left { text-align: left; }
68         #keys .center { text-align: center; }
69         #keys .right { text-align: right; }
70         td b {
71                 font-family: "Times New Roman" Times serif;
72         }
73         #buttoncontainer {
74                 text-align: center;
75         }
76         #buttoncontainer a, #buttoncontainer a:hover {
77                 border-bottom: 0px;
78         }
79 </style>
80 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
81 <style type="text/css">
82         #wphead, #adminmenu {
83                 padding-left: auto;
84                 padding-right: 15px;
85         }
86         #flipper {
87                 margin: 5px 0 3px 10px;
88         }
89         #keys .left, .top, .action { text-align: right; }
90         #keys .right { text-align: left; }
91         td b { font-family: Tahoma, "Times New Roman", Times, serif }
92 </style>
93 <?php endif; ?>
94 <script type="text/javascript">
95         window.onkeydown = window.onkeypress = function (e) {
96                 e = e ? e : window.event;
97                 if ( e.keyCode == 27 && !e.shiftKey && !e.controlKey && !e.altKey ) {
98                         window.close();
99                 }
100         }
101
102         function d(id) { return document.getElementById(id); }
103
104         function flipTab(n) {
105                 for (i=1;i<=4;i++) {
106                         c = d('content'+i.toString());
107                         t = d('tab'+i.toString());
108                         if ( n == i ) {
109                                 c.className = '';
110                                 t.className = 'current';
111                         } else {
112                                 c.className = 'hidden';
113                                 t.className = '';
114                         }
115                 }
116         }
117 </script>
118 </head>
119 <body>
120 <div class="zerosize"></div>
121 <div id="wphead"><h1><?php echo get_bloginfo('blogtitle'); ?></h1></div>
122 <div id="user_info"><p><strong><?php _e('Rich Editor Help') ?></strong></p></div>
123 <ul id="adminmenu">
124         <li><a id="tab1" href="javascript:flipTab(1)" title="<?php _e('Basics of Rich Editing') ?>" accesskey="1" class="current"><?php _e('Basics') ?></a></li>
125         <li><a id="tab2" href="javascript:flipTab(2)" title="<?php _e('Advanced use of the Rich Editor') ?>" accesskey="2"><?php _e('Advanced') ?></a></li>
126         <li><a id="tab3" href="javascript:flipTab(3)" title="<?php _e('Hotkeys') ?>" accesskey="3"><?php _e('Hotkeys') ?></a></li>
127         <li><a id="tab4" href="javascript:flipTab(4)" title="<?php _e('About the software') ?>" accesskey="4"><?php _e('About') ?></a></li>
128 </ul>
129
130 <div id="flipper" class="wrap">
131
132 <div id="content1">
133         <h2><?php _e('Rich Editing Basics') ?></h2>
134         <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>
136 </div>
137
138 <div id="content2" class="hidden">
139         <h2><?php _e('Advanced Rich Editing') ?></h2>
140         <h3><?php _e('Images and Attachments') ?></h3>
141         <p><?php _e('There is a button in the editor toolbar for inserting images that are already hosted somewhere on the internet. If you have a URL for an image, click this button and enter the URL in the box which appears.') ?></p>
142         <p><?php _e('If you need to upload an image or sound file from your computer, you can use the uploading tool below the editor. The tool will attempt to create a thumbnail-sized image when you upload an image. To insert your uploaded image into the post, first click on the thumbnail to reveal a menu of options. Clicking on a "Using.." or "Linked..." option will change that option. For instance, you might want to use the thumbnail in the post and link it to a page showing the original with a caption. When you have selected the options you like, click "Send to Editor" and your image or file will appear in the post you are editing.') ?></p>
143         <h3><?php _e('HTML in the Rich Editor') ?></h3>
144         <p><?php _e('Any HTML entered directly into the rich editor will show up as text when the post is viewed. What you see is what you get. When you want to include HTML elements that cannot be generated with the toolbar buttons, you must enter it by hand in the HTML editor. Examples are tables and &lt;code&gt;. To do this, click the HTML button and edit the code, then click Update. If the code is valid and understood by the editor, you should see it rendered immediately.') ?></p>
145 </div>
146
147 <div id="content3" class="hidden">
148         <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>
150         <table id="keys" width="100%" border="0">
151                 <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>
152                 <tr><th>n</th><td><?php _e('Check Spelling') ?></td><th>f</th><td class="align left"><?php _e('Align Left') ?></td></tr>
153                 <tr><th>j</th><td><?php _e('Justify Text') ?></td><th>c</th><td class="align center"><?php _e('Align Center') ?></td></tr>
154                 <tr><th>k</th><td><strike><?php _e('Strikethrough') ?></strike></td><th>r</th><td class="align right"><?php _e('Align Right') ?></td></tr>
155                 <tr><th>l</th><td><b>&bull;</b> <?php _e('List') ?></td><th>a</th><td><?php _e('Insert <span class="anchor">Anchor</span>') ?></td></tr>
156                 <tr><th>o</th><td>1. <?php _e('List') ?></td><th>s</th><td><?php _e('Unlink Anchor') ?></td></tr>
157                 <tr><th>q</th><td>&rarr;<?php _e('Quote/Indent') ?></td><th>m</th><td><?php _e('Insert Image') ?></td></tr>
158                 <tr><th>w</th><td>&larr;<?php _e('Unquote/Outdent') ?></td><th>t</th><td><?php _e('Insert "More" Tag') ?></td></tr>
159                 <tr><th>u</th><td><?php _e('Undo') ?></td><th>e</th><td><?php _e('Edit HTML') ?></td></tr>
160                 <tr><th>y</th><td><?php _e('Redo') ?></td><th>h</th><td><?php _e('Open Help') ?></td></tr>
161         </table>
162 </div>
163
164 <div id="content4" class="hidden">
165         <h2><?php _e('About TinyMCE'); ?></h2>
166         <p><?php printf(__('Version: %s'), '2.0.9') ?></p>
167         <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>
169         <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p>
170
171         <div id="buttoncontainer">
172                 <a href="http://www.moxiecode.com" target="_new"><img src="http://tinymce.moxiecode.com/images/gotmoxie.png" alt="<?php _e('Got Moxie?') ?>" border="0" /></a>
173                 <a href="http://sourceforge.net/projects/tinymce/" target="_blank"><img src="http://sourceforge.net/sflogo.php?group_id=103281" alt="<?php _e('Hosted By Sourceforge') ?>" border="0" /></a>
174                 <a href="http://www.freshmeat.net/projects/tinymce" target="_blank"><img src="http://tinymce.moxiecode.com/images/fm.gif" alt="<?php _e('Also on freshmeat') ?>" border="0" /></a>
175         </div>
176
177 </div>
178
179 </div>
180
181 </body>
182 </html>