<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[21266] trunk/wp-includes/js/tinymce: TinyMCE: update the keyboard shortcuts: Alt + letter for Firefox and WebKit, Alt + Shift + letter for IE and Opera, add shortcut for DFW (Alt + W), see #21214, fixes #21197, fixes #17992</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/21266">21266</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2012-07-13 00:26:49 +0000 (Fri, 13 Jul 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>TinyMCE: update the keyboard shortcuts: Alt + letter for Firefox and WebKit, Alt + Shift + letter for IE and Opera, add shortcut for DFW (Alt + W), see <a href="http://core.trac.wordpress.org/ticket/21214">#21214</a>, fixes <a href="http://core.trac.wordpress.org/ticket/21197">#21197</a>, fixes <a href="http://core.trac.wordpress.org/ticket/17992">#17992</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjstinymcelangswplangsenjs">trunk/wp-includes/js/tinymce/langs/wp-langs-en.js</a></li>
<li><a href="#trunkwpincludesjstinymcelangswplangsphp">trunk/wp-includes/js/tinymce/langs/wp-langs.php</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswordpresseditor_plugin_srcjs">trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpfullscreeneditor_plugin_srcjs">trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswplinkeditor_plugin_srcjs">trunk/wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js</a></li>
<li><a href="#trunkwpincludesjstinymcewpmcehelpphp">trunk/wp-includes/js/tinymce/wp-mce-help.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjstinymcelangswplangsenjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/langs/wp-langs-en.js (21265 => 21266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/langs/wp-langs-en.js        2012-07-13 00:17:05 UTC (rev 21265)
+++ trunk/wp-includes/js/tinymce/langs/wp-langs-en.js        2012-07-13 00:26:49 UTC (rev 21266)
</span><span class="lines">@@ -170,7 +170,7 @@
</span><span class="cx"> unload_msg:&quot;The changes you made will be lost if you navigate away from this page.&quot;
</span><span class="cx"> },
</span><span class="cx"> fullscreen:{
</span><del>-desc:&quot;Toggle fullscreen mode (Alt + Shift + G)&quot;
</del><ins>+desc:&quot;Toggle fullscreen mode (Alt + G)&quot;
</ins><span class="cx"> },
</span><span class="cx"> media:{
</span><span class="cx"> desc:&quot;Insert / edit embedded media&quot;,
</span><span class="lines">@@ -186,7 +186,7 @@
</span><span class="cx"> desc:&quot;Visual control characters on/off.&quot;
</span><span class="cx"> },
</span><span class="cx"> spellchecker:{
</span><del>-desc:&quot;Toggle spellchecker (Alt + Shift + N)&quot;,
</del><ins>+desc:&quot;Toggle spellchecker (Alt + N)&quot;,
</ins><span class="cx"> menu:&quot;Spellchecker settings&quot;,
</span><span class="cx"> ignore_word:&quot;Ignore word&quot;,
</span><span class="cx"> ignore_words:&quot;Ignore all&quot;,
</span><span class="lines">@@ -243,20 +243,20 @@
</span><span class="cx"> bold_desc:&quot;Bold (Ctrl + B)&quot;,
</span><span class="cx"> italic_desc:&quot;Italic (Ctrl + I)&quot;,
</span><span class="cx"> underline_desc:&quot;Underline&quot;,
</span><del>-striketrough_desc:&quot;Strikethrough (Alt + Shift + D)&quot;,
-justifyleft_desc:&quot;Align Left (Alt + Shift + L)&quot;,
-justifycenter_desc:&quot;Align Center (Alt + Shift + C)&quot;,
-justifyright_desc:&quot;Align Right (Alt + Shift + R)&quot;,
-justifyfull_desc:&quot;Align Full (Alt + Shift + J)&quot;,
-bullist_desc:&quot;Unordered list (Alt + Shift + U)&quot;,
-numlist_desc:&quot;Ordered list (Alt + Shift + O)&quot;,
</del><ins>+striketrough_desc:&quot;Strikethrough (Alt + D)&quot;,
+justifyleft_desc:&quot;Align Left (Alt + L)&quot;,
+justifycenter_desc:&quot;Align Center (Alt + C)&quot;,
+justifyright_desc:&quot;Align Right (Alt + R)&quot;,
+justifyfull_desc:&quot;Align Full (Alt + J)&quot;,
+bullist_desc:&quot;Unordered list (Alt + U)&quot;,
+numlist_desc:&quot;Ordered list (Alt + O)&quot;,
</ins><span class="cx"> outdent_desc:&quot;Outdent&quot;,
</span><span class="cx"> indent_desc:&quot;Indent&quot;,
</span><span class="cx"> undo_desc:&quot;Undo (Ctrl + Z)&quot;,
</span><span class="cx"> redo_desc:&quot;Redo (Ctrl + Y)&quot;,
</span><del>-link_desc:&quot;Insert/edit link (Alt + Shift + A)&quot;,
-unlink_desc:&quot;Unlink (Alt + Shift + S)&quot;,
-image_desc:&quot;Insert/edit image (Alt + Shift + M)&quot;,
</del><ins>+link_desc:&quot;Insert/edit link (Alt + A)&quot;,
+unlink_desc:&quot;Unlink (Alt + S)&quot;,
+image_desc:&quot;Insert/edit image (Alt + M)&quot;,
</ins><span class="cx"> cleanup_desc:&quot;Cleanup messy code&quot;,
</span><span class="cx"> code_desc:&quot;Edit HTML Source&quot;,
</span><span class="cx"> sub_desc:&quot;Subscript&quot;,
</span><span class="lines">@@ -274,7 +274,7 @@
</span><span class="cx"> image_props_desc:&quot;Image properties&quot;,
</span><span class="cx"> newdocument_desc:&quot;New document&quot;,
</span><span class="cx"> help_desc:&quot;Help&quot;,
</span><del>-blockquote_desc:&quot;Blockquote (Alt + Shift + Q)&quot;,
</del><ins>+blockquote_desc:&quot;Blockquote (Alt + Q)&quot;,
</ins><span class="cx"> clipboard_msg:&quot;Copy/Cut/Paste is not available in Mozilla and Firefox.&quot;,
</span><span class="cx"> path:&quot;Path&quot;,
</span><span class="cx"> newdocument:&quot;Are you sure you want to clear all contents?&quot;,
</span><span class="lines">@@ -452,10 +452,10 @@
</span><span class="cx"> });
</span><span class="cx"> 
</span><span class="cx"> tinyMCE.addI18n(&quot;en.wordpress&quot;,{
</span><del>-wp_adv_desc:&quot;Show/Hide Kitchen Sink (Alt + Shift + Z)&quot;,
-wp_more_desc:&quot;Insert More Tag (Alt + Shift + T)&quot;,
-wp_page_desc:&quot;Insert Page break (Alt + Shift + P)&quot;,
-wp_help_desc:&quot;Help (Alt + Shift + H)&quot;,
</del><ins>+wp_adv_desc:&quot;Show/Hide Kitchen Sink (Alt + Z)&quot;,
+wp_more_desc:&quot;Insert More Tag (Alt + T)&quot;,
+wp_page_desc:&quot;Insert Page break (Alt + P)&quot;,
+wp_help_desc:&quot;Help (Alt + H)&quot;,
</ins><span class="cx"> wp_more_alt:&quot;More...&quot;,
</span><span class="cx"> wp_page_alt:&quot;Next page...&quot;,
</span><span class="cx"> add_media:&quot;Add Media&quot;,
</span><span class="lines">@@ -463,7 +463,8 @@
</span><span class="cx"> add_video:&quot;Add Video&quot;,
</span><span class="cx"> add_audio:&quot;Add Audio&quot;,
</span><span class="cx"> editgallery:&quot;Edit Gallery&quot;,
</span><del>-delgallery:&quot;Delete Gallery&quot;
</del><ins>+delgallery:&quot;Delete Gallery&quot;,
+wp_fullscreen_desc:&quot;Distraction Free Writing mode (Alt + W)&quot;
</ins><span class="cx"> });
</span><span class="cx"> 
</span><span class="cx"> tinyMCE.addI18n(&quot;en.wpeditimage&quot;,{
</span></span></pre></div>
<a id="trunkwpincludesjstinymcelangswplangsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/langs/wp-langs.php (21265 => 21266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/langs/wp-langs.php        2012-07-13 00:17:05 UTC (rev 21265)
+++ trunk/wp-includes/js/tinymce/langs/wp-langs.php        2012-07-13 00:26:49 UTC (rev 21266)
</span><span class="lines">@@ -204,7 +204,7 @@
</span><span class="cx">                 ),
</span><span class="cx"> 
</span><span class="cx">                 'fullscreen' =&gt; array(
</span><del>-                        'desc' =&gt; __('Toggle fullscreen mode (Alt + Shift + G)')
</del><ins>+                        'desc' =&gt; __('Toggle fullscreen mode (Alt + G)')
</ins><span class="cx">                 ),
</span><span class="cx"> 
</span><span class="cx">                 'media' =&gt; array(
</span><span class="lines">@@ -225,7 +225,7 @@
</span><span class="cx">                 ),
</span><span class="cx"> 
</span><span class="cx">                 'spellchecker' =&gt; array(
</span><del>-                        'desc' =&gt; __('Toggle spellchecker (Alt + Shift + N)'),
</del><ins>+                        'desc' =&gt; __('Toggle spellchecker (Alt + N)'),
</ins><span class="cx">                         'menu' =&gt; __('Spellchecker settings'),
</span><span class="cx">                         'ignore_word' =&gt; __('Ignore word'),
</span><span class="cx">                         'ignore_words' =&gt; __('Ignore all'),
</span><span class="lines">@@ -286,20 +286,20 @@
</span><span class="cx">                 'bold_desc' =&gt; __('Bold (Ctrl + B)'),
</span><span class="cx">                 'italic_desc' =&gt; __('Italic (Ctrl + I)'),
</span><span class="cx">                 'underline_desc' =&gt; __('Underline'),
</span><del>-                'striketrough_desc' =&gt; __('Strikethrough (Alt + Shift + D)'),
-                'justifyleft_desc' =&gt; __('Align Left (Alt + Shift + L)'),
-                'justifycenter_desc' =&gt; __('Align Center (Alt + Shift + C)'),
-                'justifyright_desc' =&gt; __('Align Right (Alt + Shift + R)'),
-                'justifyfull_desc' =&gt; __('Align Full (Alt + Shift + J)'),
-                'bullist_desc' =&gt; __('Unordered list (Alt + Shift + U)'),
-                'numlist_desc' =&gt; __('Ordered list (Alt + Shift + O)'),
</del><ins>+                'striketrough_desc' =&gt; __('Strikethrough (Alt + D)'),
+                'justifyleft_desc' =&gt; __('Align Left (Alt + L)'),
+                'justifycenter_desc' =&gt; __('Align Center (Alt + C)'),
+                'justifyright_desc' =&gt; __('Align Right (Alt + R)'),
+                'justifyfull_desc' =&gt; __('Align Full (Alt + J)'),
+                'bullist_desc' =&gt; __('Unordered list (Alt + U)'),
+                'numlist_desc' =&gt; __('Ordered list (Alt + O)'),
</ins><span class="cx">                 'outdent_desc' =&gt; __('Outdent'),
</span><span class="cx">                 'indent_desc' =&gt; __('Indent'),
</span><span class="cx">                 'undo_desc' =&gt; __('Undo (Ctrl + Z)'),
</span><span class="cx">                 'redo_desc' =&gt; __('Redo (Ctrl + Y)'),
</span><del>-                'link_desc' =&gt; __('Insert/edit link (Alt + Shift + A)'),
-                'unlink_desc' =&gt; __('Unlink (Alt + Shift + S)'),
-                'image_desc' =&gt; __('Insert/edit image (Alt + Shift + M)'),
</del><ins>+                'link_desc' =&gt; __('Insert/edit link (Alt + A)'),
+                'unlink_desc' =&gt; __('Unlink (Alt + S)'),
+                'image_desc' =&gt; __('Insert/edit image (Alt + M)'),
</ins><span class="cx">                 'cleanup_desc' =&gt; __('Cleanup messy code'),
</span><span class="cx">                 'code_desc' =&gt; __('Edit HTML Source'),
</span><span class="cx">                 'sub_desc' =&gt; __('Subscript'),
</span><span class="lines">@@ -317,7 +317,7 @@
</span><span class="cx">                 'image_props_desc' =&gt; __('Image properties'),
</span><span class="cx">                 'newdocument_desc' =&gt; __('New document'),
</span><span class="cx">                 'help_desc' =&gt; __('Help'),
</span><del>-                'blockquote_desc' =&gt; __('Blockquote (Alt + Shift + Q)'),
</del><ins>+                'blockquote_desc' =&gt; __('Blockquote (Alt + Q)'),
</ins><span class="cx">                 'clipboard_msg' =&gt; __('Copy/Cut/Paste is not available in Mozilla and Firefox.'),
</span><span class="cx">                 'path' =&gt; __('Path'),
</span><span class="cx">                 'newdocument' =&gt; __('Are you sure you want to clear all contents?'),
</span><span class="lines">@@ -495,10 +495,10 @@
</span><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         $wordpress = array(
</span><del>-                'wp_adv_desc' =&gt; __('Show/Hide Kitchen Sink (Alt + Shift + Z)'),
-                'wp_more_desc' =&gt; __('Insert More Tag (Alt + Shift + T)'),
-                'wp_page_desc' =&gt; __('Insert Page break (Alt + Shift + P)'),
-                'wp_help_desc' =&gt; __('Help (Alt + Shift + H)'),
</del><ins>+                'wp_adv_desc' =&gt; __('Show/Hide Kitchen Sink (Alt + Z)'),
+                'wp_more_desc' =&gt; __('Insert More Tag (Alt + T)'),
+                'wp_page_desc' =&gt; __('Insert Page break (Alt + P)'),
+                'wp_help_desc' =&gt; __('Help (Alt + H)'),
</ins><span class="cx">                 'wp_more_alt' =&gt; __('More...'),
</span><span class="cx">                 'wp_page_alt' =&gt; __('Next page...'),
</span><span class="cx">                 'add_media' =&gt; __('Add Media'),
</span><span class="lines">@@ -506,7 +506,8 @@
</span><span class="cx">                 'add_video' =&gt; __('Add Video'),
</span><span class="cx">                 'add_audio' =&gt; __('Add Audio'),
</span><span class="cx">                 'editgallery' =&gt; __('Edit Gallery'),
</span><del>-                'delgallery' =&gt; __('Delete Gallery')
</del><ins>+                'delgallery' =&gt; __('Delete Gallery'),
+                'wp_fullscreen_desc' =&gt; __('Distraction Free Writing mode (Alt + W)')
</ins><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         $wpeditimage = array(
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_plugin_srcjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js (21265 => 21266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js        2012-07-13 00:17:05 UTC (rev 21265)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js        2012-07-13 00:26:49 UTC (rev 21266)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx">                 mceTout : 0,
</span><span class="cx"> 
</span><span class="cx">                 init : function(ed, url) {
</span><del>-                        var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML, closeOnClick;
</del><ins>+                        var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML, closeOnClick, mod_key;
</ins><span class="cx">                         moreHTML = '&lt;img src=&quot;' + url + '/img/trans.gif&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+ed.getLang('wordpress.wp_more_alt')+'&quot; /&gt;';
</span><span class="cx">                         nextpageHTML = '&lt;img src=&quot;' + url + '/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+ed.getLang('wordpress.wp_page_alt')+'&quot; /&gt;';
</span><span class="cx"> 
</span><span class="lines">@@ -74,7 +74,6 @@
</span><span class="cx">                                         return;
</span><span class="cx"> 
</span><span class="cx">                                 tb_show('', link.href);
</span><del>-                                tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
</del><span class="cx">                         });
</span><span class="cx"> 
</span><span class="cx">                         // Register buttons
</span><span class="lines">@@ -250,30 +249,32 @@
</span><span class="cx">                         t._handleMoreBreak(ed, url);
</span><span class="cx"> 
</span><span class="cx">                         // Add custom shortcuts
</span><del>-                        ed.addShortcut('alt+shift+c', ed.getLang('justifycenter_desc'), 'JustifyCenter');
-                        ed.addShortcut('alt+shift+r', ed.getLang('justifyright_desc'), 'JustifyRight');
-                        ed.addShortcut('alt+shift+l', ed.getLang('justifyleft_desc'), 'JustifyLeft');
-                        ed.addShortcut('alt+shift+j', ed.getLang('justifyfull_desc'), 'JustifyFull');
-                        ed.addShortcut('alt+shift+q', ed.getLang('blockquote_desc'), 'mceBlockQuote');
-                        ed.addShortcut('alt+shift+u', ed.getLang('bullist_desc'), 'InsertUnorderedList');
-                        ed.addShortcut('alt+shift+o', ed.getLang('numlist_desc'), 'InsertOrderedList');
-                        ed.addShortcut('alt+shift+d', ed.getLang('striketrough_desc'), 'Strikethrough');
-                        ed.addShortcut('alt+shift+n', ed.getLang('spellchecker.desc'), 'mceSpellCheck');
-                        ed.addShortcut('alt+shift+a', ed.getLang('link_desc'), 'mceLink');
-                        ed.addShortcut('alt+shift+s', ed.getLang('unlink_desc'), 'unlink');
-                        ed.addShortcut('alt+shift+m', ed.getLang('image_desc'), 'WP_Medialib');
-                        ed.addShortcut('alt+shift+g', ed.getLang('fullscreen.desc'), 'mceFullScreen');
-                        ed.addShortcut('alt+shift+z', ed.getLang('wp_adv_desc'), 'WP_Adv');
-                        ed.addShortcut('alt+shift+h', ed.getLang('help_desc'), 'WP_Help');
-                        ed.addShortcut('alt+shift+t', ed.getLang('wp_more_desc'), 'WP_More');
-                        ed.addShortcut('alt+shift+p', ed.getLang('wp_page_desc'), 'WP_Page');
-                        ed.addShortcut('ctrl+s', ed.getLang('save_desc'), function(){if('function'==typeof autosave)autosave();});
</del><ins>+                        mod_key = 'alt';
</ins><span class="cx"> 
</span><del>-                        if ( tinymce.isWebKit ) {
-                                ed.addShortcut('alt+shift+b', ed.getLang('bold_desc'), 'Bold');
-                                ed.addShortcut('alt+shift+i', ed.getLang('italic_desc'), 'Italic');
-                        }
</del><ins>+                        if ( tinymce.isIE || tinymce.isOpera )
+                                mod_key = 'shift+alt';
</ins><span class="cx"> 
</span><ins>+                        ed.addShortcut(mod_key + '+c', 'justifycenter_desc', 'JustifyCenter');
+                        ed.addShortcut(mod_key + '+r', 'justifyright_desc', 'JustifyRight');
+                        ed.addShortcut(mod_key + '+l', 'justifyleft_desc', 'JustifyLeft');
+                        ed.addShortcut(mod_key + '+j', 'justifyfull_desc', 'JustifyFull');
+                        ed.addShortcut(mod_key + '+q', 'blockquote_desc', 'mceBlockQuote');
+                        ed.addShortcut(mod_key + '+u', 'bullist_desc', 'InsertUnorderedList');
+                        ed.addShortcut(mod_key + '+o', 'numlist_desc', 'InsertOrderedList');
+                        ed.addShortcut(mod_key + '+n', 'spellchecker.desc', 'mceSpellCheck');
+                        ed.addShortcut(mod_key + '+a', 'link_desc', 'WP_Link');
+                        ed.addShortcut(mod_key + '+s', 'unlink_desc', 'unlink');
+                        ed.addShortcut(mod_key + '+m', 'image_desc', 'WP_Medialib');
+                        ed.addShortcut(mod_key + '+z', 'wordpress.wp_adv_desc', 'WP_Adv');
+                        ed.addShortcut(mod_key + '+t', 'wordpress.wp_more_desc', 'WP_More');
+                        ed.addShortcut(mod_key + '+d', 'striketrough_desc', 'Strikethrough');
+                        ed.addShortcut(mod_key + '+h', 'help_desc', 'WP_Help');
+                        ed.addShortcut(mod_key + '+p', 'wordpress.wp_page_desc', 'WP_Page');
+                        ed.addShortcut(mod_key + '+w', 'wordpress.wp_fullscreen_desc', 'wpFullScreen');
+                        ed.addShortcut(mod_key + '+g', 'fullscreen.desc', 'mceFullScreen');
+                        ed.addShortcut('ctrl+s', 'save_desc', function(){if('function'==typeof autosave)autosave();});
+
+                        // popup buttons for images and the gallery
</ins><span class="cx">                         ed.onInit.add(function(ed) {
</span><span class="cx">                                 tinymce.dom.Event.add(ed.getWin(), 'scroll', function(e) {
</span><span class="cx">                                         ed.plugins.wordpress._hideButtons();
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpfullscreeneditor_plugin_srcjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js (21265 => 21266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js        2012-07-13 00:17:05 UTC (rev 21265)
+++ trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js        2012-07-13 00:26:49 UTC (rev 21266)
</span><span class="lines">@@ -93,13 +93,21 @@
</span><span class="cx">                                 }
</span><span class="cx">                         });
</span><span class="cx"> 
</span><ins>+                        ed.addCommand('wpFullScreen', function() {
+                                if ( typeof(fullscreen) == 'undefined' )
+                                        return;
+
+                                if ( 'wp_mce_fullscreen' == ed.id )
+                                        fullscreen.off();
+                                else
+                                        fullscreen.on();
+                        });
+
</ins><span class="cx">                         // Register buttons
</span><del>-                        if ( 'undefined' != fullscreen ) {
-                                ed.addButton('wp_fullscreen', {
-                                        title : 'fullscreen.desc',
-                                        onclick : function(){ fullscreen.on(); }
-                                });
-                        }
</del><ins>+                        ed.addButton('wp_fullscreen', {
+                                title : 'wordpress.wp_fullscreen_desc',
+                                cmd : 'wpFullScreen'
+                        });
</ins><span class="cx"> 
</span><span class="cx">                         // END fullscreen
</span><span class="cx"> //----------------------------------------------------------------
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkeditor_plugin_srcjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js (21265 => 21266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js        2012-07-13 00:17:05 UTC (rev 21265)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js        2012-07-13 00:26:49 UTC (rev 21266)
</span><span class="lines">@@ -28,12 +28,10 @@
</span><span class="cx"> 
</span><span class="cx">                         // Register example button
</span><span class="cx">                         ed.addButton('link', {
</span><del>-                                title : ed.getLang('advanced.link_desc'),
</del><ins>+                                title : 'advanced.link_desc',
</ins><span class="cx">                                 cmd : 'WP_Link'
</span><span class="cx">                         });
</span><span class="cx"> 
</span><del>-                        ed.addShortcut('alt+shift+a', ed.getLang('advanced.link_desc'), 'WP_Link');
-
</del><span class="cx">                         ed.onNodeChange.add(function(ed, cm, n, co) {
</span><span class="cx">                                 disabled = co &amp;&amp; n.nodeName != 'A';
</span><span class="cx">                         });
</span><span class="lines">@@ -57,4 +55,5 @@
</span><span class="cx"> 
</span><span class="cx">         // Register plugin
</span><span class="cx">         tinymce.PluginManager.add('wplink', tinymce.plugins.wpLink);
</span><del>-})();
</del><span class="cx">\ No newline at end of file
</span><ins>+})();
+
</ins></span></pre></div>
<a id="trunkwpincludesjstinymcewpmcehelpphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/wp-mce-help.php (21265 => 21266)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/wp-mce-help.php        2012-07-13 00:17:05 UTC (rev 21265)
+++ trunk/wp-includes/js/tinymce/wp-mce-help.php        2012-07-13 00:26:49 UTC (rev 21266)
</span><span class="lines">@@ -111,6 +111,8 @@
</span><span class="cx">         }
</span><span class="cx">         .keys {
</span><span class="cx">                 margin-bottom: 15px;
</span><ins>+                width: 100%;
+                border: 0 none;
</ins><span class="cx">         }
</span><span class="cx">         .keys p {
</span><span class="cx">                 display: inline-block;
</span><span class="lines">@@ -130,20 +132,10 @@
</span><span class="cx">         #buttoncontainer a, #buttoncontainer a:hover {
</span><span class="cx">                 border-bottom: 0px;
</span><span class="cx">         }
</span><del>-
-        .mac,
-        .macos .win {
</del><ins>+        .macos .win,
+        .windows .mac {
</ins><span class="cx">                 display: none;
</span><span class="cx">         }
</span><del>-
-        .macos span.mac {
-                display: inline;
-        }
-
-        .macwebkit tr.mac {
-                display: table-row;
-        }
-
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;?php if ( is_rtl() ) : ?&gt;
</span><span class="cx"> &lt;style type=&quot;text/css&quot;&gt;
</span><span class="lines">@@ -159,45 +151,12 @@
</span><span class="cx">         td b { font-family: Tahoma, &quot;Times New Roman&quot;, Times, serif }
</span><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><ins>+&lt;/head&gt;
+&lt;body class=&quot;windows&quot;&gt;
</ins><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><del>-        function d(id) { return document.getElementById(id); }
-
-        function flipTab(n) {
-                for (i=1;i&lt;=4;i++) {
-                        c = d('content'+i.toString());
-                        t = d('tab'+i.toString());
-                        if ( n == i ) {
-                                c.className = '';
-                                t.className = 'current';
-                        } else {
-                                c.className = 'hidden';
-                                t.className = '';
-                        }
-                }
-        }
-
-    tinyMCEPopup.onInit.add(function() {
-        var win = tinyMCEPopup.getWin();
-
-                document.getElementById('version').innerHTML = tinymce.majorVersion + &quot;.&quot; + tinymce.minorVersion;
-        document.getElementById('date').innerHTML = tinymce.releaseDate;
-
-                if ( win.fullscreen &amp;&amp; win.fullscreen.settings.visible ) {
-                        d('content1').className = 'hidden';
-                        d('tabs').className = 'hidden';
-                        d('content3').className = 'dfw';
-                }
-
-                if ( tinymce.isMac )
-                        document.body.className = 'macos';
-
-                if ( tinymce.isMac &amp;&amp; tinymce.isWebKit )
-                        document.body.className = 'macos macwebkit';
-
-    });
</del><ins>+if ( tinymce.isMac )
+        document.body.className = document.body.className.replace(/windows/, 'macos');
</ins><span class="cx"> &lt;/script&gt;
</span><del>-&lt;/head&gt;
-&lt;body&gt;
</del><span class="cx"> 
</span><span class="cx"> &lt;ul id=&quot;tabs&quot;&gt;
</span><span class="cx">         &lt;li&gt;&lt;a id=&quot;tab1&quot; href=&quot;javascript:flipTab(1)&quot; title=&quot;&lt;?php esc_attr_e('Basics of Rich Editing') ?&gt;&quot; accesskey=&quot;1&quot; tabindex=&quot;1&quot; class=&quot;current&quot;&gt;&lt;?php _e('Basics') ?&gt;&lt;/a&gt;&lt;/li&gt;
</span><span class="lines">@@ -232,24 +191,22 @@
</span><span class="cx">         &lt;h2&gt;&lt;?php _e('Writing at Full Speed') ?&gt;&lt;/h2&gt;
</span><span class="cx">     &lt;p&gt;&lt;?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.') ?&gt;&lt;/p&gt;
</span><span class="cx"> 
</span><del>-        &lt;table class=&quot;keys&quot; width=&quot;100%&quot; style=&quot;border: 0 none;&quot;&gt;
</del><ins>+        &lt;table class=&quot;keys&quot;&gt;
</ins><span class="cx">                 &lt;tr class=&quot;top&quot;&gt;&lt;th class=&quot;key center&quot;&gt;&lt;?php _e('Letter') ?&gt;&lt;/th&gt;&lt;th class=&quot;left&quot;&gt;&lt;?php _e('Action') ?&gt;&lt;/th&gt;&lt;th class=&quot;key center&quot;&gt;&lt;?php _e('Letter') ?&gt;&lt;/th&gt;&lt;th class=&quot;left&quot;&gt;&lt;?php _e('Action') ?&gt;&lt;/th&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;c&lt;/th&gt;&lt;td&gt;&lt;?php _e('Copy') ?&gt;&lt;/td&gt;&lt;th&gt;v&lt;/th&gt;&lt;td&gt;&lt;?php _e('Paste') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;a&lt;/th&gt;&lt;td&gt;&lt;?php _e('Select all') ?&gt;&lt;/td&gt;&lt;th&gt;x&lt;/th&gt;&lt;td&gt;&lt;?php _e('Cut') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;z&lt;/th&gt;&lt;td&gt;&lt;?php _e('Undo') ?&gt;&lt;/td&gt;&lt;th&gt;y&lt;/th&gt;&lt;td&gt;&lt;?php _e('Redo') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx"> 
</span><del>-                &lt;tr class=&quot;win&quot;&gt;&lt;th&gt;b&lt;/th&gt;&lt;td&gt;&lt;?php _e('Bold') ?&gt;&lt;/td&gt;&lt;th&gt;i&lt;/th&gt;&lt;td&gt;&lt;?php _e('Italic') ?&gt;&lt;/td&gt;&lt;/tr&gt;
-                &lt;tr class=&quot;win&quot;&gt;&lt;th&gt;u&lt;/th&gt;&lt;td&gt;&lt;?php _e('Underline') ?&gt;&lt;/td&gt;&lt;th&gt;1&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 1') ?&gt;&lt;/td&gt;&lt;/tr&gt;
-                &lt;tr class=&quot;win&quot;&gt;&lt;th&gt;2&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 2') ?&gt;&lt;/td&gt;&lt;th&gt;3&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 3') ?&gt;&lt;/td&gt;&lt;/tr&gt;
-                &lt;tr class=&quot;win&quot;&gt;&lt;th&gt;4&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 4') ?&gt;&lt;/td&gt;&lt;th&gt;5&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 5') ?&gt;&lt;/td&gt;&lt;/tr&gt;
-                &lt;tr class=&quot;win&quot;&gt;&lt;th&gt;6&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 6') ?&gt;&lt;/td&gt;&lt;th&gt;9&lt;/th&gt;&lt;td&gt;&lt;?php _e('Address') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</del><ins>+                &lt;tr&gt;&lt;th&gt;b&lt;/th&gt;&lt;td&gt;&lt;?php _e('Bold') ?&gt;&lt;/td&gt;&lt;th&gt;i&lt;/th&gt;&lt;td&gt;&lt;?php _e('Italic') ?&gt;&lt;/td&gt;&lt;/tr&gt;
+                &lt;tr&gt;&lt;th&gt;u&lt;/th&gt;&lt;td&gt;&lt;?php _e('Underline') ?&gt;&lt;/td&gt;&lt;th&gt;1&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 1') ?&gt;&lt;/td&gt;&lt;/tr&gt;
+                &lt;tr&gt;&lt;th&gt;2&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 2') ?&gt;&lt;/td&gt;&lt;th&gt;3&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 3') ?&gt;&lt;/td&gt;&lt;/tr&gt;
+                &lt;tr&gt;&lt;th&gt;4&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 4') ?&gt;&lt;/td&gt;&lt;th&gt;5&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 5') ?&gt;&lt;/td&gt;&lt;/tr&gt;
+                &lt;tr&gt;&lt;th&gt;6&lt;/th&gt;&lt;td&gt;&lt;?php _e('Heading 6') ?&gt;&lt;/td&gt;&lt;th&gt;9&lt;/th&gt;&lt;td&gt;&lt;?php _e('Address') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</ins><span class="cx">         &lt;/table&gt;
</span><span class="cx"> 
</span><del>-        &lt;p&gt;&lt;?php _e('The following shortcuts use different access keys: Alt + Shift + letter.') ?&gt;&lt;/p&gt;
-        &lt;table class=&quot;keys&quot; width=&quot;100%&quot; style=&quot;border: 0 none;&quot;&gt;
</del><ins>+        &lt;p&gt;&lt;?php _e('The following shortcuts use different access keys: Alt + letter in Firefox, Chrome and Safari, Alt + Shift + letter in Internet Explorer and Opera.') ?&gt;&lt;/p&gt;
+        &lt;table class=&quot;keys&quot;&gt;
</ins><span class="cx">                 &lt;tr class=&quot;top&quot;&gt;&lt;th class=&quot;key center&quot;&gt;&lt;?php _e('Letter') ?&gt;&lt;/th&gt;&lt;th class=&quot;left&quot;&gt;&lt;?php _e('Action') ?&gt;&lt;/th&gt;&lt;th class=&quot;key center&quot;&gt;&lt;?php _e('Letter') ?&gt;&lt;/th&gt;&lt;th class=&quot;left&quot;&gt;&lt;?php _e('Action') ?&gt;&lt;/th&gt;&lt;/tr&gt;
</span><del>-                &lt;tr class=&quot;mac&quot;&gt;&lt;th&gt;b&lt;/th&gt;&lt;td&gt;&lt;?php _e('Bold') ?&gt;&lt;/td&gt;&lt;th&gt;i&lt;/th&gt;&lt;td&gt;&lt;?php _e('Italic') ?&gt;&lt;/td&gt;&lt;/tr&gt;
-
</del><span class="cx">                 &lt;tr&gt;&lt;th&gt;n&lt;/th&gt;&lt;td&gt;&lt;?php _e('Check Spelling') ?&gt;&lt;/td&gt;&lt;th&gt;l&lt;/th&gt;&lt;td&gt;&lt;?php _e('Align Left') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;j&lt;/th&gt;&lt;td&gt;&lt;?php _e('Justify Text') ?&gt;&lt;/td&gt;&lt;th&gt;c&lt;/th&gt;&lt;td&gt;&lt;?php _e('Align Center') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;d&lt;/th&gt;&lt;td&gt;&lt;span style=&quot;text-decoration: line-through;&quot;&gt;&lt;?php _e('Strikethrough') ?&gt;&lt;/span&gt;&lt;/td&gt;&lt;th&gt;r&lt;/th&gt;&lt;td&gt;&lt;?php _e('Align Right') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="lines">@@ -258,9 +215,11 @@
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;q&lt;/th&gt;&lt;td&gt;&lt;?php _e('Quote') ?&gt;&lt;/td&gt;&lt;th&gt;m&lt;/th&gt;&lt;td&gt;&lt;?php _e('Insert Image') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;g&lt;/th&gt;&lt;td&gt;&lt;?php _e('Full Screen') ?&gt;&lt;/td&gt;&lt;th&gt;t&lt;/th&gt;&lt;td&gt;&lt;?php _e('Insert More Tag') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;p&lt;/th&gt;&lt;td&gt;&lt;?php _e('Insert Page Break tag') ?&gt;&lt;/td&gt;&lt;th&gt;h&lt;/th&gt;&lt;td&gt;&lt;?php _e('Help') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><del>-                &lt;tr&gt;&lt;th&gt;e&lt;/th&gt;&lt;td colspan=&quot;3&quot;&gt;&lt;?php _e('Switch to Text mode') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</del><ins>+                &lt;tr&gt;&lt;th&gt;w&lt;/th&gt;&lt;td colspan=&quot;3&quot;&gt;&lt;?php _e('Distraction Free Writing mode') ?&gt;&lt;/td&gt;&lt;/tr&gt;
+        &lt;/table&gt;
</ins><span class="cx"> 
</span><del>-                &lt;tr&gt;&lt;th colspan=&quot;4&quot; style=&quot;font-weight: normal;padding: 15px 10px 10px;&quot;&gt;&lt;?php _e('Editor width in Distraction-free writing mode:'); ?&gt;&lt;/th&gt;&lt;/tr&gt;
</del><ins>+        &lt;p style=&quot;padding: 15px 10px 10px;&quot;&gt;&lt;?php _e('Editor width in Distraction Free Writing mode:'); ?&gt;&lt;/p&gt;
+        &lt;table class=&quot;keys&quot;&gt;
</ins><span class="cx">                 &lt;tr&gt;&lt;th&gt;&lt;span class=&quot;win&quot;&gt;Alt +&lt;/span&gt;&lt;span class=&quot;mac&quot;&gt;Ctrl +&lt;/span&gt;&lt;/th&gt;&lt;td&gt;&lt;?php _e('Wider') ?&gt;&lt;/td&gt;
</span><span class="cx">                         &lt;th&gt;&lt;span class=&quot;win&quot;&gt;Alt -&lt;/span&gt;&lt;span class=&quot;mac&quot;&gt;Ctrl -&lt;/span&gt;&lt;/th&gt;&lt;td&gt;&lt;?php _e('Narrower') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;&lt;span class=&quot;win&quot;&gt;Alt 0&lt;/span&gt;&lt;span class=&quot;mac&quot;&gt;Ctrl 0&lt;/span&gt;&lt;/th&gt;&lt;td&gt;&lt;?php _e('Default width') ?&gt;&lt;/td&gt;&lt;th&gt;&lt;/th&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="lines">@@ -273,7 +232,7 @@
</span><span class="cx">     &lt;p&gt;&lt;?php _e('Version:'); ?&gt; &lt;span id=&quot;version&quot;&gt;&lt;/span&gt; (&lt;span id=&quot;date&quot;&gt;&lt;/span&gt;)&lt;/p&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor released as Open Source under %sLGPL&lt;/a&gt;        by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '&lt;a href=&quot;'.home_url('/wp-includes/js/tinymce/license.txt').'&quot; target=&quot;_blank&quot; title=&quot;'.esc_attr__('GNU Library General Public Licence').'&quot;&gt;') ?&gt;&lt;/p&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('Copyright &amp;copy; 2003-2011, &lt;a href=&quot;http://www.moxiecode.com&quot; target=&quot;_blank&quot;&gt;Moxiecode Systems AB&lt;/a&gt;, All rights reserved.') ?&gt;&lt;/p&gt;
</span><del>-        &lt;p&gt;&lt;?php _e('For more information about this software visit the &lt;a href=&quot;http://tinymce.moxiecode.com&quot; target=&quot;_blank&quot;&gt;TinyMCE website&lt;/a&gt;.') ?&gt;&lt;/p&gt;
</del><ins>+        &lt;p&gt;&lt;?php _e('For more information about this software visit the &lt;a href=&quot;http://tinymce.com&quot; target=&quot;_blank&quot;&gt;TinyMCE website&lt;/a&gt;.') ?&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><span class="cx">         &lt;div id=&quot;buttoncontainer&quot;&gt;
</span><span class="cx">                 &lt;a href=&quot;http://www.moxiecode.com&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;themes/advanced/img/gotmoxie.png&quot; alt=&quot;&lt;?php esc_attr_e('Got Moxie?') ?&gt;&quot; style=&quot;border: 0&quot; /&gt;&lt;/a&gt;
</span><span class="lines">@@ -287,6 +246,37 @@
</span><span class="cx">                 &lt;input type=&quot;button&quot; id=&quot;cancel&quot; name=&quot;cancel&quot; value=&quot;&lt;?php esc_attr_e('Close'); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e('Close'); ?&gt;&quot; onclick=&quot;tinyMCEPopup.close();&quot; /&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><ins>+&lt;script type=&quot;text/javascript&quot;&gt;
+        function d(id) { return document.getElementById(id); }
</ins><span class="cx"> 
</span><ins>+        function flipTab(n) {
+                var i, c, t;
+
+                for ( i = 1; i &lt;= 4; i++ ) {
+                        c = d('content'+i.toString());
+                        t = d('tab'+i.toString());
+                        if ( n == i ) {
+                                c.className = '';
+                                t.className = 'current';
+                        } else {
+                                c.className = 'hidden';
+                                t.className = '';
+                        }
+                }
+        }
+
+    tinyMCEPopup.onInit.add(function() {
+        var win = tinyMCEPopup.getWin();
+
+                d('version').innerHTML = tinymce.majorVersion + &quot;.&quot; + tinymce.minorVersion;
+        d('date').innerHTML = tinymce.releaseDate;
+
+                if ( win.fullscreen &amp;&amp; win.fullscreen.settings.visible ) {
+                        d('content1').className = 'hidden';
+                        d('tabs').className = 'hidden';
+                        d('content3').className = 'dfw';
+                }
+    });
+&lt;/script&gt;
</ins><span class="cx"> &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre>
</div>
</div>

</body>
</html>