<!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>[21300] trunk: TinyMCE: fix tabbig in and out of the editor, fixes #20834</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/21300">21300</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2012-07-22 02:33:53 +0000 (Sun, 22 Jul 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>TinyMCE: fix tabbig in and out of the editor, fixes <a href="http://core.trac.wordpress.org/ticket/20834">#20834</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmineditformadvancedphp">trunk/wp-admin/edit-form-advanced.php</a></li>
<li><a href="#trunkwpadminincludespostphp">trunk/wp-admin/includes/post.php</a></li>
<li><a href="#trunkwpincludesclasswpeditorphp">trunk/wp-includes/class-wp-editor.php</a></li>
<li><a href="#trunkwpincludesjsautosavedevjs">trunk/wp-includes/js/autosave.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginstabfocuseditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginstabfocuseditor_plugin_srcjs">trunk/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin_src.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmineditformadvancedphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-form-advanced.php (21299 => 21300)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-form-advanced.php        2012-07-21 20:24:21 UTC (rev 21299)
+++ trunk/wp-admin/edit-form-advanced.php        2012-07-22 02:33:53 UTC (rev 21300)
</span><span class="lines">@@ -312,7 +312,7 @@
</span><span class="cx"> &lt;?php if ( post_type_supports($post_type, 'editor') ) { ?&gt;
</span><span class="cx"> &lt;div id=&quot;postdivrich&quot; class=&quot;postarea&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php wp_editor($post-&gt;post_content, 'content', array('dfw' =&gt; true, 'tabindex' =&gt; 1) ); ?&gt;
</del><ins>+&lt;?php wp_editor($post-&gt;post_content, 'content', array('dfw' =&gt; true, 'tabindex' =&gt; 1, 'tabfocus_elements' =&gt; 'sample-permalink,post-preview') ); ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;table id=&quot;post-status-info&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;
</span><span class="cx">         &lt;td id=&quot;wp-word-count&quot;&gt;&lt;?php printf( __( 'Word count: %s' ), '&lt;span class=&quot;word-count&quot;&gt;0&lt;/span&gt;' ); ?&gt;&lt;/td&gt;
</span></span></pre></div>
<a id="trunkwpadminincludespostphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/post.php (21299 => 21300)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/post.php        2012-07-21 20:24:21 UTC (rev 21299)
+++ trunk/wp-admin/includes/post.php        2012-07-22 02:33:53 UTC (rev 21300)
</span><span class="lines">@@ -1091,7 +1091,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if ( false === strpos($permalink, '%postname%') &amp;&amp; false === strpos($permalink, '%pagename%') ) {
</span><del>-                $return = '&lt;strong&gt;' . __('Permalink:') . &quot;&lt;/strong&gt;\n&quot; . '&lt;span id=&quot;sample-permalink&quot;&gt;' . $permalink . &quot;&lt;/span&gt;\n&quot;;
</del><ins>+                $return = '&lt;strong&gt;' . __('Permalink:') . &quot;&lt;/strong&gt;\n&quot; . '&lt;span id=&quot;sample-permalink&quot; tabindex=&quot;-1&quot;&gt;' . $permalink . &quot;&lt;/span&gt;\n&quot;;
</ins><span class="cx">                 if ( '' == get_option( 'permalink_structure' ) &amp;&amp; current_user_can( 'manage_options' ) &amp;&amp; !( 'page' == get_option('show_on_front') &amp;&amp; $id == get_option('page_on_front') ) )
</span><span class="cx">                         $return .= '&lt;span id=&quot;change-permalinks&quot;&gt;&lt;a href=&quot;options-permalink.php&quot; class=&quot;button&quot; target=&quot;_blank&quot;&gt;' . __('Change Permalinks') . &quot;&lt;/a&gt;&lt;/span&gt;\n&quot;;
</span><span class="cx">                 if ( isset($view_post) )
</span><span class="lines">@@ -1120,7 +1120,7 @@
</span><span class="cx">         $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink);
</span><span class="cx">         $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink);
</span><span class="cx">         $return =  '&lt;strong&gt;' . __('Permalink:') . &quot;&lt;/strong&gt;\n&quot;;
</span><del>-        $return .= '&lt;span id=&quot;sample-permalink&quot;&gt;' . $display_link . &quot;&lt;/span&gt;\n&quot;;
</del><ins>+        $return .= '&lt;span id=&quot;sample-permalink&quot; tabindex=&quot;-1&quot;&gt;' . $display_link . &quot;&lt;/span&gt;\n&quot;;
</ins><span class="cx">         $return .= '&amp;lrm;'; // Fix bi-directional text display defect in RTL languages.
</span><span class="cx">         $return .= '&lt;span id=&quot;edit-slug-buttons&quot;&gt;&lt;a href=&quot;#post_name&quot; class=&quot;edit-slug button hide-if-no-js&quot; onclick=&quot;editPermalink(' . $id . '); return false;&quot;&gt;' . __('Edit') . &quot;&lt;/a&gt;&lt;/span&gt;\n&quot;;
</span><span class="cx">         $return .= '&lt;span id=&quot;editable-post-name-full&quot;&gt;' . $post_name . &quot;&lt;/span&gt;\n&quot;;
</span></span></pre></div>
<a id="trunkwpincludesclasswpeditorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/class-wp-editor.php (21299 => 21300)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/class-wp-editor.php        2012-07-21 20:24:21 UTC (rev 21299)
+++ trunk/wp-includes/class-wp-editor.php        2012-07-22 02:33:53 UTC (rev 21300)
</span><span class="lines">@@ -34,6 +34,7 @@
</span><span class="cx">                         'textarea_name' =&gt; $editor_id, // set the textarea name to something different, square brackets [] can be used here
</span><span class="cx">                         'textarea_rows' =&gt; get_option('default_post_edit_rows', 10), // rows=&quot;...&quot;
</span><span class="cx">                         'tabindex' =&gt; '',
</span><ins>+                        'tabfocus_elements' =&gt; ':prev,:next', // the previous and next element ID to move the focus to when pressing the Tab key in TinyMCE
</ins><span class="cx">                         'editor_css' =&gt; '', // intended for extra styles for both visual and Text editors buttons, needs to include the &lt;style&gt; tags, can use &quot;scoped&quot;.
</span><span class="cx">                         'editor_class' =&gt; '', // add extra class(es) to the editor textarea
</span><span class="cx">                         'teeny' =&gt; false, // output the minimal editor config used in Press This
</span><span class="lines">@@ -311,7 +312,6 @@
</span><span class="cx">                                         'keep_styles' =&gt; false,
</span><span class="cx">                                         'entities' =&gt; '38,amp,60,lt,62,gt',
</span><span class="cx">                                         'accessibility_focus' =&gt; true,
</span><del>-                                        'tabfocus_elements' =&gt; 'title,publish',
</del><span class="cx">                                         'media_strict' =&gt; false,
</span><span class="cx">                                         'paste_remove_styles' =&gt; true,
</span><span class="cx">                                         'paste_remove_spans' =&gt; true,
</span><span class="lines">@@ -398,6 +398,7 @@
</span><span class="cx">                                 'theme_advanced_buttons2' =&gt; implode($mce_buttons_2, ','),
</span><span class="cx">                                 'theme_advanced_buttons3' =&gt; implode($mce_buttons_3, ','),
</span><span class="cx">                                 'theme_advanced_buttons4' =&gt; implode($mce_buttons_4, ','),
</span><ins>+                                'tabfocus_elements' =&gt; $set['tabfocus_elements'],
</ins><span class="cx">                                 'body_class' =&gt; $body_class
</span><span class="cx">                         );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpincludesjsautosavedevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/autosave.dev.js (21299 => 21300)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.dev.js        2012-07-21 20:24:21 UTC (rev 21299)
+++ trunk/wp-includes/js/autosave.dev.js        2012-07-22 02:33:53 UTC (rev 21300)
</span><span class="lines">@@ -1,7 +1,6 @@
</span><span class="cx"> var autosave, autosaveLast = '', autosavePeriodical, autosaveOldMessage = '', autosaveDelayPreview = false, notSaved = true, blockSave = false, fullscreen, autosaveLockRelease = true;
</span><span class="cx"> 
</span><span class="cx"> jQuery(document).ready( function($) {
</span><del>-        var dotabkey = true;
</del><span class="cx"> 
</span><span class="cx">         autosaveLast = $('#post #title').val() + $('#post #content').val();
</span><span class="cx">         autosavePeriodical = $.schedule({time: autosaveL10n.autosaveInterval * 1000, func: function() { autosave(); }, repeat: true, protect: true});
</span><span class="lines">@@ -29,7 +28,7 @@
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         window.onbeforeunload = function(){
</span><del>-                var mce = typeof(tinyMCE) != 'undefined' ? tinyMCE.activeEditor : false, title, content;
</del><ins>+                var mce = typeof(tinymce) != 'undefined' ? tinymce.activeEditor : false, title, content;
</ins><span class="cx"> 
</span><span class="cx">                 if ( mce &amp;&amp; !mce.isHidden() ) {
</span><span class="cx">                         if ( mce.isDirty() )
</span><span class="lines">@@ -97,17 +96,15 @@
</span><span class="cx">                 $('input#wp-preview').val('');
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        //  This code is meant to allow tabbing from Title to Post if tinyMCE is defined.
-        if ( typeof tinyMCE != 'undefined' ) {
-                $('#title')[$.browser.opera ? 'keypress' : 'keydown'](function (e) {
-                        if ( e.which == 9 &amp;&amp; !e.shiftKey &amp;&amp; !e.controlKey &amp;&amp; !e.altKey ) {
-                                if ( ($('#auto_draft').val() == '1') &amp;&amp; ($(&quot;#title&quot;).val().length &gt; 0) ) { autosave(); }
-                                if ( tinyMCE.activeEditor &amp;&amp; ! tinyMCE.activeEditor.isHidden() &amp;&amp; dotabkey ) {
-                                        e.preventDefault();
-                                        dotabkey = false;
-                                        tinyMCE.activeEditor.focus();
-                                        return false;
-                                }
</del><ins>+        //  This code is meant to allow tabbing from Title to Post if tinymce is defined.
+        if ( typeof tinymce != 'undefined' ) {
+                $('#title').bind('keydown.focus-tinymce', function(e) {
+                        if ( e.which != 9 )
+                                return;
+
+                        if ( !e.ctrlKey &amp;&amp; !e.altKey &amp;&amp; !e.shiftKey &amp;&amp; tinymce.activeEditor &amp;&amp; !tinymce.activeEditor.isHidden() ) {
+                                $('td.mceToolbar &gt; a').focus();
+                                e.preventDefault();
</ins><span class="cx">                         }
</span><span class="cx">                 });
</span><span class="cx">         }
</span><span class="lines">@@ -244,7 +241,7 @@
</span><span class="cx"> autosave = function() {
</span><span class="cx">         // (bool) is rich editor enabled and active
</span><span class="cx">         blockSave = true;
</span><del>-        var rich = (typeof tinyMCE != &quot;undefined&quot;) &amp;&amp; tinyMCE.activeEditor &amp;&amp; !tinyMCE.activeEditor.isHidden(),
</del><ins>+        var rich = (typeof tinymce != &quot;undefined&quot;) &amp;&amp; tinymce.activeEditor &amp;&amp; !tinymce.activeEditor.isHidden(),
</ins><span class="cx">                 post_data, doAutoSave, ed, origStatus, successCallback;
</span><span class="cx"> 
</span><span class="cx">         autosave_disable_buttons();
</span><span class="lines">@@ -269,16 +266,16 @@
</span><span class="cx">         if ( jQuery(&quot;#TB_window&quot;).css('display') == 'block' )
</span><span class="cx">                 doAutoSave = false;
</span><span class="cx"> 
</span><del>-        /* Gotta do this up here so we can check the length when tinyMCE is in use */
</del><ins>+        /* Gotta do this up here so we can check the length when tinymce is in use */
</ins><span class="cx">         if ( rich &amp;&amp; doAutoSave ) {
</span><del>-                ed = tinyMCE.activeEditor;
-                // Don't run while the TinyMCE spellcheck is on. It resets all found words.
</del><ins>+                ed = tinymce.activeEditor;
+                // Don't run while the tinymce spellcheck is on. It resets all found words.
</ins><span class="cx">                 if ( ed.plugins.spellchecker &amp;&amp; ed.plugins.spellchecker.active ) {
</span><span class="cx">                         doAutoSave = false;
</span><span class="cx">                 } else {
</span><span class="cx">                         if ( 'mce_fullscreen' == ed.id || 'wp_mce_fullscreen' == ed.id )
</span><del>-                                tinyMCE.get('content').setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
-                        tinyMCE.triggerSave();
</del><ins>+                                tinymce.get('content').setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
+                        tinymce.triggerSave();
</ins><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginstabfocuseditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js (21299 => 21300)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js        2012-07-21 20:24:21 UTC (rev 21299)
+++ trunk/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js        2012-07-22 02:33:53 UTC (rev 21300)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){var c=tinymce.DOM,a=tinymce.dom.Event,d=tinymce.each,b=tinymce.explode;tinymce.create(&quot;tinymce.plugins.TabFocusPlugin&quot;,{init:function(f,g){function e(i,j){if(j.keyCode===9){return a.cancel(j)}}function h(l,p){var j,m,o,n,k;function q(t){n=c.select(&quot;:input:enabled,*[tabindex]:not(iframe)&quot;);function s(v){return v.nodeName===&quot;BODY&quot;||(v.type!=&quot;hidden&quot;&amp;&amp;!(v.style.display==&quot;none&quot;)&amp;&amp;!(v.style.visibility==&quot;hidden&quot;)&amp;&amp;s(v.parentNode))}function i(v){return v.attributes.tabIndex.specified||v.nodeName==&quot;INPUT&quot;||v.nodeName==&quot;TEXTAREA&quot;}function u(){return tinymce.isIE6||tinymce.isIE7}function r(v){return((!u()||i(v)))&amp;&amp;v.getAttribute(&quot;tabindex&quot;)!=&quot;-1&quot;&amp;&amp;s(v)}d(n,function(w,v){if(w.id==l.id){j=v;return false}});if(t&gt;0){for(m=j+1;m&lt;n.length;m++){if(r(n[m])){return n[m]}}}else{for(m=j-1;m&gt;=0;m--){if(r(n[m])){return n[m]}}}r
 eturn null}if(p.keyCode===9){k=b(l.getParam(&quot;tab_focus&quot;,l.getParam(&quot;tabfocus_elements&quot;,&quot;:prev,:next&quot;)));if(k.length==1){k[1]=k[0];k[0]=&quot;:prev&quot;}if(p.shiftKey){if(k[0]==&quot;:prev&quot;){n=q(-1)}else{n=c.get(k[0])}}else{if(k[1]==&quot;:next&quot;){n=q(1)}else{n=c.get(k[1])}}if(n){if(n.id&amp;&amp;(l=tinymce.get(n.id||n.name))){l.focus()}else{window.setTimeout(function(){if(!tinymce.isWebKit){window.focus()}n.focus()},10)}return a.cancel(p)}}}f.onKeyUp.add(e);if(tinymce.isGecko){f.onKeyPress.add(h);f.onKeyDown.add(e)}else{f.onKeyDown.add(h)}},getInfo:function(){return{longname:&quot;Tabfocus&quot;,author:&quot;Moxiecode Systems AB&quot;,authorurl:&quot;http://tinymce.moxiecode.com&quot;,infourl:&quot;http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus&quot;,version:tinymce.majorVersion+&quot;.&quot;+tinymce.minorVersion}}});tinymce.PluginManager.add(&quot;tabfocus&quot;,tinymce.plugins.TabFocusPlugin)})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(){var c=tinymce.DOM,a=tinymce.dom.Event,d=tinymce.each,b=tinymce.explode;tinymce.create(&quot;tinymce.plugins.TabFocusPlugin&quot;,{init:function(f,g){function e(i,j){if(j.keyCode===9){return a.cancel(j)}}function h(l,p){var j,m,o,n,k;function q(t){n=c.select(&quot;:input:enabled,*[tabindex]:not(iframe)&quot;);function s(v){return v.nodeName===&quot;BODY&quot;||(v.type!=&quot;hidden&quot;&amp;&amp;!(v.style.display==&quot;none&quot;)&amp;&amp;!(v.style.visibility==&quot;hidden&quot;)&amp;&amp;s(v.parentNode))}function i(v){return v.attributes.tabIndex.specified||v.nodeName==&quot;INPUT&quot;||v.nodeName==&quot;TEXTAREA&quot;}function u(){return tinymce.isIE6||tinymce.isIE7}function r(v){return((!u()||i(v)))&amp;&amp;v.getAttribute(&quot;tabindex&quot;)!=&quot;-1&quot;&amp;&amp;s(v)}d(n,function(w,v){if(w.id==l.id){j=v;return false}});if(t&gt;0){for(m=j+1;m&lt;n.length;m++){if(r(n[m])){return n[m]}}}else{for(m=j-1;m&gt;=0;m--){if(r(n[m])){return n[m]}}}r
 eturn null}if(p.keyCode===9){k=b(l.getParam(&quot;tab_focus&quot;,l.getParam(&quot;tabfocus_elements&quot;,&quot;:prev,:next&quot;)));if(k.length==1){k[1]=k[0];k[0]=&quot;:prev&quot;}if(p.shiftKey){if(k[0]==&quot;:prev&quot;){n=q(-1)}else{n=c.get(k[0])}}else{if(k[1]==&quot;:next&quot;){n=q(1)}else{n=c.get(k[1])}}if(n){if(n.id&amp;&amp;(l=tinymce.get(n.id||n.name))){l.focus()}else{window.setTimeout(function(){if(!tinymce.isWebKit){window.focus()}n.focus()},10)}return a.cancel(p)}}}f.onKeyUp.add(e);f.onKeyDown.add(h);if(tinymce.isGecko){f.onKeyPress.add(e)}},getInfo:function(){return{longname:&quot;Tabfocus&quot;,author:&quot;Moxiecode Systems AB&quot;,authorurl:&quot;http://tinymce.moxiecode.com&quot;,infourl:&quot;http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus&quot;,version:tinymce.majorVersion+&quot;.&quot;+tinymce.minorVersion}}});tinymce.PluginManager.add(&quot;tabfocus&quot;,tinymce.plugins.TabFocusPlugin)})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginstabfocuseditor_plugin_srcjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin_src.js (21299 => 21300)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin_src.js        2012-07-21 20:24:21 UTC (rev 21299)
+++ trunk/wp-includes/js/tinymce/plugins/tabfocus/editor_plugin_src.js        2012-07-22 02:33:53 UTC (rev 21300)
</span><span class="lines">@@ -97,13 +97,10 @@
</span><span class="cx">                         }
</span><span class="cx"> 
</span><span class="cx">                         ed.onKeyUp.add(tabCancel);
</span><ins>+                        ed.onKeyDown.add(tabHandler);
</ins><span class="cx"> 
</span><del>-                        if (tinymce.isGecko) {
-                                ed.onKeyPress.add(tabHandler);
-                                ed.onKeyDown.add(tabCancel);
-                        } else
-                                ed.onKeyDown.add(tabHandler);
-
</del><ins>+                        if (tinymce.isGecko)
+                                ed.onKeyPress.add(tabCancel);
</ins><span class="cx">                 },
</span><span class="cx"> 
</span><span class="cx">                 getInfo : function() {
</span></span></pre>
</div>
</div>

</body>
</html>