2008-08-20 02:20:22 -04:00
< ? php
/**
* @ package TinyMCE
* @ author Moxiecode
* @ copyright Copyright © 2005 - 2006 , Moxiecode Systems AB , All rights reserved .
*/
/** @ignore */
2013-09-24 20:18:11 -04:00
require_once ( dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) ) . '/wp-load.php' );
2007-01-30 21:07:21 -05:00
header ( 'Content-Type: text/html; charset=' . get_bloginfo ( 'charset' ));
?>
2011-07-21 20:25:41 -04:00
<! DOCTYPE html >
2006-09-26 20:51:17 -04:00
< html xmlns = " http://www.w3.org/1999/xhtml " < ? php language_attributes (); ?> >
2005-11-19 14:41:21 -05:00
< head >
2006-09-26 20:51:17 -04:00
< meta http - equiv = " Content-Type " content = " <?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?> " />
2012-08-03 14:12:45 -04:00
< title >< ? php _e ( 'Rich Editor Help' ); ?> </title>
2012-12-05 23:50:31 -05:00
< script type = " text/javascript " src = " tiny_mce_popup.js?ver=358-20121205 " ></ script >
2014-02-18 01:32:14 -05:00
< ? php wp_admin_css ( 'wp-admin' , true ); ?>
2005-11-19 14:41:21 -05:00
< style type = " text/css " >
2014-02-18 01:32:14 -05:00
html {
background : #fcfcfc;
overflow : hidden ;
}
2011-11-09 09:38:37 -05:00
body {
min - width : 0 ;
}
2014-02-18 01:32:14 -05:00
2014-03-26 20:08:15 -04:00
. wp - core - ui #tabs {
margin - top : 1 px ;
padding : 0 6 px ;
2014-02-18 01:32:14 -05:00
position : absolute ;
top : 0 ;
2014-03-26 20:08:15 -04:00
right : 0 ;
left : 0 ;
height : 31 px ;
z - index : 1 ;
2005-11-19 14:41:21 -05:00
}
2014-02-18 01:32:14 -05:00
2014-03-26 20:08:15 -04:00
. wp - core - ui #tabs a {
2014-02-18 01:32:14 -05:00
position : relative ;
float : left ;
2014-03-26 20:08:15 -04:00
padding : 6 px 10 px ;
margin : 0 ;
2014-02-18 01:32:14 -05:00
height : 18 px ;
line - height : 18 px ;
text - decoration : none ;
2014-03-26 20:08:15 -04:00
- webkit - transition : none ;
transition : none ;
2005-11-19 14:41:21 -05:00
}
2014-02-18 01:32:14 -05:00
2014-03-26 20:08:15 -04:00
#tabs a.active {
margin : - 1 px - 1 px 0 ;
2014-02-18 01:32:14 -05:00
background : #fff;
2014-03-26 20:08:15 -04:00
border : 1 px solid #ddd;
border - bottom : none ;
color : #333;
2005-11-19 14:41:21 -05:00
}
2014-02-18 01:32:14 -05:00
#tabs .active:after {
display : none ;
2005-11-19 14:41:21 -05:00
}
2014-02-18 01:32:14 -05:00
2005-11-19 14:41:21 -05:00
#flipper {
2008-01-22 01:23:46 -05:00
background - color : #fff;
2014-02-18 01:32:14 -05:00
border - top : 1 px solid #ddd;
height : 360 px ;
margin : 0 ;
2014-03-26 20:08:15 -04:00
margin - top : 30 px ;
overflow : auto ;
2014-02-18 01:32:14 -05:00
padding : 10 px 16 px ;
2005-11-19 14:41:21 -05:00
}
2014-02-18 01:32:14 -05:00
2005-11-19 14:41:21 -05:00
th {
text - align : center ;
}
2014-02-18 01:32:14 -05:00
2005-11-19 14:41:21 -05:00
. top th {
text - decoration : underline ;
}
2014-02-18 01:32:14 -05:00
2005-11-19 14:41:21 -05:00
. top . key {
text - align : center ;
2008-11-30 05:22:16 -05:00
width : 5 em ;
2005-11-19 14:41:21 -05:00
}
2014-02-18 01:32:14 -05:00
2008-03-03 19:07:29 -05:00
. keys {
2014-02-18 01:32:14 -05:00
border : 0 none ;
2008-03-03 19:07:29 -05:00
margin - bottom : 15 px ;
2012-07-12 20:26:49 -04:00
width : 100 % ;
2008-03-03 19:07:29 -05:00
}
2014-02-18 01:32:14 -05:00
2008-03-03 19:07:29 -05:00
. keys p {
2005-11-19 14:41:21 -05:00
display : inline - block ;
margin : 0 px ;
padding : 0 px ;
}
2014-02-18 01:32:14 -05:00
. keys . left {
text - align : left ;
2005-11-19 14:41:21 -05:00
}
2014-02-18 01:32:14 -05:00
. keys . center {
2005-11-19 14:41:21 -05:00
text - align : center ;
}
2014-02-18 01:32:14 -05:00
. keys . right {
text - align : right ;
2005-11-19 14:41:21 -05:00
}
2014-02-18 01:32:14 -05:00
2012-07-12 20:26:49 -04:00
. macos . win ,
. windows . mac {
2011-05-19 14:49:36 -04:00
display : none ;
}
2014-02-18 01:32:14 -05:00
2005-11-19 14:41:21 -05:00
</ style >
2010-05-03 01:49:19 -04:00
< ? php if ( is_rtl () ) : ?>
2006-09-26 20:51:17 -04:00
< style type = " text/css " >
2014-02-18 01:32:14 -05:00
. keys . left {
text - align : right ;
2006-09-26 20:51:17 -04:00
}
2014-02-18 01:32:14 -05:00
. keys . right {
text - align : left ;
2006-09-26 20:51:17 -04:00
}
2014-02-18 01:32:14 -05:00
2006-09-26 20:51:17 -04:00
</ style >
2007-09-03 19:32:58 -04:00
< ? php endif ; ?>
2012-07-12 20:26:49 -04:00
</ head >
2012-11-30 08:40:59 -05:00
< body class = " windows wp-core-ui " >
2005-11-19 14:41:21 -05:00
< script type = " text/javascript " >
2012-07-12 20:26:49 -04:00
if ( tinymce . isMac )
document . body . className = document . body . className . replace ( / windows / , 'macos' );
2005-11-19 14:41:21 -05:00
</ script >
2008-11-30 05:22:16 -05:00
2014-03-26 20:08:15 -04:00
< div id = " tabs " >
< a id = " tab1 " href = " javascript:flipTab(1) " title = " <?php esc_attr_e('Basics of Rich Editing'); ?> " accesskey = " 1 " class = " active " >< ? php _e ( 'Basics' ); ?> </a>
< a id = " tab2 " href = " javascript:flipTab(2) " title = " <?php esc_attr_e('Advanced use of the Rich Editor'); ?> " accesskey = " 2 " >< ? php _e ( 'Advanced' ); ?> </a>
< a id = " tab3 " href = " javascript:flipTab(3) " title = " <?php esc_attr_e('Hotkeys'); ?> " accesskey = " 3 " >< ? php _e ( 'Hotkeys' ); ?> </a>
< a id = " tab4 " href = " javascript:flipTab(4) " title = " <?php esc_attr_e('About the software'); ?> " accesskey = " 4 " >< ? php _e ( 'About' ); ?> </a>
2014-02-18 01:32:14 -05:00
</ div >
2005-11-19 14:41:21 -05:00
< div id = " flipper " class = " wrap " >
< div id = " content1 " >
2012-08-03 14:12:45 -04:00
< h2 >< ? php _e ( 'Rich Editing Basics' ); ?> </h2>
< 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>
< p >< ? php _e ( 'WordPress includes a rich HTML editor that works well in all major web browsers used today. However editing HTML is not the same as typing text. Each web page has two major components: the structure, which is the actual HTML code and is produced by the editor as you type, and the display, that is applied to it by the currently selected WordPress theme and is defined in style.css. WordPress is producing valid XHTML 1.0 which means that inserting multiple line breaks (BR tags) after a paragraph would not produce white space on the web page. The BR tags will be removed as invalid by the internal HTML correcting functions.' ); ?> </p>
< 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+A = select all, etc. (on Mac use the Command key instead of Ctrl). See the Hotkeys tab for all available keyboard shortcuts.' ); ?> </p>
2014-02-18 01:32:14 -05:00
< p >< ? php _e ( 'If you do not like the way the rich editor works, you may turn it off from Your Profile submenu, under Users in the admin menu.' ); ?> </p>
2005-11-19 14:41:21 -05:00
</ div >
< div id = " content2 " class = " hidden " >
2012-08-03 14:12:45 -04:00
< h2 >< ? php _e ( 'Advanced Rich Editing' ); ?> </h2>
< h3 >< ? php _e ( 'Images and Attachments' ); ?> </h3>
< 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>
< p >< ? php _e ( 'If you need to upload an image or another media file from your computer, you can use the Media Library button above the editor. The media library will attempt to create a thumbnail-sized copy from each uploaded image. To insert your image into the post, first click on the thumbnail to reveal a menu of options. When you have selected the options you like, click "Insert into Post" and your image or file will appear in the post you are editing.' ); ?> </p>
< h3 >< ? php _e ( 'HTML in the Rich Editor' ); ?> </h3>
< 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 Text editor. Examples are tables and <code>. To do this, click the Text tab and edit the code, then switch back to Visual mode. If the code is valid and understood by the editor, you should see it rendered immediately.' ); ?> </p>
< h3 >< ? php _e ( 'Pasting in the Rich Editor' ); ?> </h3>
< p >< ? php _e ( 'When pasting content from another web page the results can be inconsistent and depend on your browser and on the web page you are pasting from. The editor tries to correct any invalid HTML code that was pasted, but for best results try using the Text tab or one of the paste buttons that are on the second row. Alternatively try pasting paragraph by paragraph. In most browsers to select one paragraph at a time, triple-click on it.' ); ?> </p>
< p >< ? php _e ( 'Pasting content from another application, like Word or Excel, is best done with the Paste from Word button on the second row, or in Text mode.' ); ?> </p>
2005-11-19 14:41:21 -05:00
</ div >
< div id = " content3 " class = " hidden " >
2012-08-03 14:12:45 -04:00
< h2 >< ? php _e ( 'Writing at Full Speed' ); ?> </h2>
2014-02-18 01:32:14 -05:00
< 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>
2011-05-19 14:49:36 -04:00
2012-07-12 20:26:49 -04:00
< table class = " keys " >
2012-08-03 14:12:45 -04:00
< 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>
< tr >< th > c </ th >< td >< ? php _e ( 'Copy' ); ?> </td><th>v</th><td><?php _e('Paste'); ?></td></tr>
< tr >< th > a </ th >< td >< ? php _e ( 'Select all' ); ?> </td><th>x</th><td><?php _e('Cut'); ?></td></tr>
< tr >< th > z </ th >< td >< ? php _e ( 'Undo' ); ?> </td><th>y</th><td><?php _e('Redo'); ?></td></tr>
2011-06-03 20:46:47 -04:00
2012-08-03 14:12:45 -04:00
< tr >< th > b </ th >< td >< ? php _e ( 'Bold' ); ?> </td><th>i</th><td><?php _e('Italic'); ?></td></tr>
< tr >< th > u </ th >< td >< ? php _e ( 'Underline' ); ?> </td><th>1</th><td><?php _e('Heading 1'); ?></td></tr>
< tr >< th > 2 </ th >< td >< ? php _e ( 'Heading 2' ); ?> </td><th>3</th><td><?php _e('Heading 3'); ?></td></tr>
< tr >< th > 4 </ th >< td >< ? php _e ( 'Heading 4' ); ?> </td><th>5</th><td><?php _e('Heading 5'); ?></td></tr>
< tr >< th > 6 </ th >< td >< ? php _e ( 'Heading 6' ); ?> </td><th>9</th><td><?php _e('Address'); ?></td></tr>
2008-02-27 00:36:42 -05:00
</ table >
2008-08-09 01:36:14 -04:00
2012-08-03 14:12:45 -04:00
< p >< ? php _e ( 'The following shortcuts use different access keys: Alt + Shift + letter.' ); ?> </p>
2012-07-12 20:26:49 -04:00
< table class = " keys " >
2012-08-03 14:12:45 -04:00
< 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>
< tr >< th > n </ th >< td >< ? php _e ( 'Check Spelling' ); ?> </td><th>l</th><td><?php _e('Align Left'); ?></td></tr>
< tr >< th > j </ th >< td >< ? php _e ( 'Justify Text' ); ?> </td><th>c</th><td><?php _e('Align Center'); ?></td></tr>
< tr >< th > d </ th >< td >< span style = " text-decoration: line-through; " >< ? php _e ( 'Strikethrough' ); ?> </span></td><th>r</th><td><?php _e('Align Right'); ?></td></tr>
< tr >< th > u </ th >< td >< strong >& bull ; </ strong > < ? php _e ( 'List' ); ?> </td><th>a</th><td><?php _e('Insert link'); ?></td></tr>
< tr >< th > o </ th >< td > 1. < ? php _e ( 'List' ); ?> </td><th>s</th><td><?php _e('Remove link'); ?></td></tr>
< tr >< th > q </ th >< td >< ? php _e ( 'Quote' ); ?> </td><th>m</th><td><?php _e('Insert Image'); ?></td></tr>
2012-11-05 19:28:01 -05:00
< tr >< th > w </ th >< td >< ? php _e ( 'Distraction Free Writing mode' ); ?> </td><th>t</th><td><?php _e('Insert More Tag'); ?></td></tr>
2012-08-03 14:12:45 -04:00
< tr >< th > p </ th >< td >< ? php _e ( 'Insert Page Break tag' ); ?> </td><th>h</th><td><?php _e('Help'); ?></td></tr>
2012-07-12 20:26:49 -04:00
</ table >
2011-06-16 06:28:29 -04:00
2012-07-12 20:26:49 -04:00
< p style = " padding: 15px 10px 10px; " >< ? php _e ( 'Editor width in Distraction Free Writing mode:' ); ?> </p>
< table class = " keys " >
2012-08-03 14:12:45 -04:00
< tr >< th >< span class = " win " > Alt +</ span >< span class = " mac " > Ctrl +</ span ></ th >< td >< ? php _e ( 'Wider' ); ?> </td>
< th >< span class = " win " > Alt -</ span >< span class = " mac " > Ctrl -</ span ></ th >< td >< ? php _e ( 'Narrower' ); ?> </td></tr>
< 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>
2005-11-19 14:41:21 -05:00
</ table >
</ div >
< div id = " content4 " class = " hidden " >
< h2 >< ? php _e ( 'About TinyMCE' ); ?> </h2>
2008-02-05 01:47:27 -05:00
2014-02-18 01:32:14 -05:00
< p >< ? php _e ( 'Version:' ); ?> <span id="version"></span> (<span id="date"></span>)</p>
2012-08-03 14:12:45 -04:00
< 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 License' ) . '">' ); ?> </p>
TinyMCE 4.0.12, first run.
- Removes wp-tinymce-schema.js and mark-loaded.js, no longer needed.
- Removes the inlinepopups and most of the wpdialogs plugins; wpdialog.js is moved to wp-includes/js.
- Adds charmap, compat3x, image, link and textcolor plugins, previously contained in /themes/advanced.
- Updates the wordpress, wpeditimage, wpfullscreen, wpgallery and wplink plugins.
- Updates DFW, wp-admin/js/wp-fullscreen.js.
See #24067.
Built from https://develop.svn.wordpress.org/trunk@26876
git-svn-id: http://core.svn.wordpress.org/trunk@26759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-28 18:53:15 -05:00
< p >< ? php _e ( 'Copyright © 2003-2014, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.' ); ?> </p>
2012-08-03 14:12:45 -04:00
< p >< ? php _e ( 'For more information about this software visit the <a href="http://tinymce.com" target="_blank">TinyMCE website</a>.' ); ?> </p>
2005-11-19 14:41:21 -05:00
</ div >
TinyMCE 4.0.12, first run.
- Removes wp-tinymce-schema.js and mark-loaded.js, no longer needed.
- Removes the inlinepopups and most of the wpdialogs plugins; wpdialog.js is moved to wp-includes/js.
- Adds charmap, compat3x, image, link and textcolor plugins, previously contained in /themes/advanced.
- Updates the wordpress, wpeditimage, wpfullscreen, wpgallery and wplink plugins.
- Updates DFW, wp-admin/js/wp-fullscreen.js.
See #24067.
Built from https://develop.svn.wordpress.org/trunk@26876
git-svn-id: http://core.svn.wordpress.org/trunk@26759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-28 18:53:15 -05:00
2008-01-31 13:10:46 -05:00
</ div >
2012-07-12 20:26:49 -04:00
< script type = " text/javascript " >
function d ( id ) { return document . getElementById ( id ); }
2005-11-19 14:41:21 -05:00
2012-07-12 20:26:49 -04:00
function flipTab ( n ) {
var i , c , t ;
for ( i = 1 ; i <= 4 ; i ++ ) {
c = d ( 'content' + i . toString ());
t = d ( 'tab' + i . toString ());
if ( n == i ) {
c . className = '' ;
2014-02-18 01:32:14 -05:00
t . className = 'active' ;
2012-07-12 20:26:49 -04:00
} else {
c . className = 'hidden' ;
t . className = '' ;
}
}
}
2014-02-18 01:32:14 -05:00
tinyMCEPopup . onInit . add ( function () {
var win = tinyMCEPopup . getWin ();
2012-07-12 20:26:49 -04:00
d ( 'version' ) . innerHTML = tinymce . majorVersion + " . " + tinymce . minorVersion ;
2014-02-18 01:32:14 -05:00
d ( 'date' ) . innerHTML = tinymce . releaseDate ;
2012-07-12 20:26:49 -04:00
if ( win . fullscreen && win . fullscreen . settings . visible ) {
d ( 'content1' ) . className = 'hidden' ;
d ( 'tabs' ) . className = 'hidden' ;
d ( 'content3' ) . className = 'dfw' ;
}
2014-02-18 01:32:14 -05:00
});
2012-07-12 20:26:49 -04:00
</ script >
2005-11-19 14:41:21 -05:00
</ body >
</ html >