<!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>[18137] trunk: DFW: restore editor width shortcuts, restore limited overwriting of the theme styling in TinyMCE, show the toolbar on mouse move in TinyMCE, improve the help, fixes #17503, fixes #17644, fixes #17664, fixes #17596</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://trac.wordpress.org/changeset/18137">18137</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-06-04 00:46:47 +0000 (Sat, 04 Jun 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>DFW: restore editor width shortcuts, restore limited overwriting of the theme styling in TinyMCE, show the toolbar on mouse move in TinyMCE, improve the help, fixes <a href="http://trac.wordpress.org/ticket/17503">#17503</a>, fixes <a href="http://trac.wordpress.org/ticket/17644">#17644</a>, fixes <a href="http://trac.wordpress.org/ticket/17664">#17664</a>, fixes <a href="http://trac.wordpress.org/ticket/17596">#17596</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludespostphp">trunk/wp-admin/includes/post.php</a></li>
<li><a href="#trunkwpadminjswpfullscreendevjs">trunk/wp-admin/js/wp-fullscreen.dev.js</a></li>
<li><a href="#trunkwpadminjswpfullscreenjs">trunk/wp-admin/js/wp-fullscreen.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpfullscreeneditor_plugindevjs">trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpfullscreeneditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js</a></li>
<li><a href="#trunkwpincludesjstinymcewpmcehelpphp">trunk/wp-includes/js/tinymce/wp-mce-help.php</a></li>
<li><a href="#trunkwpincludesjstinymcewptinymcejsgz">trunk/wp-includes/js/tinymce/wp-tinymce.js.gz</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
<li><a href="#trunkwpincludesversionphp">trunk/wp-includes/version.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/</li>
<li><a href="#trunkwpincludesjstinymcepluginswpfullscreencsswpfullscreencss">trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludespostphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/post.php (18136 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/post.php        2011-06-03 23:30:46 UTC (rev 18136)
+++ trunk/wp-admin/includes/post.php        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -1581,6 +1581,7 @@
</span><span class="cx">                 'paste_text_use_dialog' =&gt; true,
</span><span class="cx">                 'extended_valid_elements' =&gt; 'article[*],aside[*],audio[*],canvas[*],command[*],datalist[*],details[*],embed[*],figcaption[*],figure[*],footer[*],header[*],hgroup[*],keygen[*],mark[*],meter[*],nav[*],output[*],progress[*],section[*],source[*],summary,time[*],video[*],wbr',
</span><span class="cx">                 'wpeditimage_disable_captions' =&gt; $no_captions,
</span><ins>+                'wp_fullscreen_content_css' =&gt; &quot;$baseurl/plugins/wpfullscreen/css/wp-fullscreen.css&quot;, 
</ins><span class="cx">                 'plugins' =&gt; implode( ',', $plugins ),
</span><span class="cx">         );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjswpfullscreendevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.dev.js (18136 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.dev.js        2011-06-03 23:30:46 UTC (rev 18136)
+++ trunk/wp-admin/js/wp-fullscreen.dev.js        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -78,7 +78,8 @@
</span><span class="cx">                 mode : 'tinymce',
</span><span class="cx">                 editor_id : 'content',
</span><span class="cx">                 title_id : 'title',
</span><del>-                timer : 0
</del><ins>+                timer : 0,
+                toolbar_shown : false
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         /**
</span><span class="lines">@@ -87,7 +88,7 @@
</span><span class="cx">          * Creates a function that publishes start/stop topics.
</span><span class="cx">          * Used to throttle events.
</span><span class="cx">          */
</span><del>-        bounder = function( start, stop, delay ) {
</del><ins>+        bounder = api.bounder = function( start, stop, delay ) {
</ins><span class="cx">                 delay = delay || 1250;
</span><span class="cx"> 
</span><span class="cx">                 if ( block )
</span><span class="lines">@@ -243,6 +244,7 @@
</span><span class="cx">                 s.toolbars.removeClass('fade-1000').addClass('fade-300');
</span><span class="cx">                 api.fade.In( s.toolbars, 300, function(){ ps.publish('toolbarShown'); }, true );
</span><span class="cx">                 $('#wp-fullscreen-body').addClass('wp-fullscreen-focus');
</span><ins>+                s.toolbar_shown = true;
</ins><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'hideToolbar', function() {
</span><span class="lines">@@ -257,6 +259,7 @@
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'toolbarHidden', function() {
</span><span class="cx">                 s.toolbars.removeClass('fade-1000');
</span><ins>+                s.toolbar_shown = false;
</ins><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'show', function() { // This event occurs before the overlay blocks the UI.
</span><span class="lines">@@ -480,11 +483,16 @@
</span><span class="cx">                                 wptitlehint('wp-fullscreen-title');
</span><span class="cx"> 
</span><span class="cx">                         $(document).keyup(function(e){
</span><del>-                                var c = e.keyCode || e.charCode, data;
</del><ins>+                                var c = e.keyCode || e.charCode, a, data;
</ins><span class="cx"> 
</span><span class="cx">                                 if ( !fullscreen.settings.visible )
</span><span class="cx">                                         return true;
</span><span class="cx"> 
</span><ins>+                                if ( navigator.platform &amp;&amp; navigator.platform.indexOf('Mac') != -1 )
+                                        a = e.ctrlKey; // Ctrl key for Mac
+                                else
+                                        a = e.altKey; // Alt key for Win &amp; Linux
+
</ins><span class="cx">                                 if ( 27 == c ) { // Esc
</span><span class="cx">                                         data = {
</span><span class="cx">                                                 event: e,
</span><span class="lines">@@ -501,6 +509,15 @@
</span><span class="cx">                                                 fullscreen.off();
</span><span class="cx">                                 }
</span><span class="cx"> 
</span><ins>+                                if ( a &amp;&amp; (61 == c || 107 == c || 187 == c) ) // +
+                                        api.dfw_width(25);
+
+                                if ( a &amp;&amp; (45 == c || 109 == c || 189 == c) ) // -
+                                        api.dfw_width(-25);
+
+                                if ( a &amp;&amp; 48 == c ) // 0
+                                        api.dfw_width(0);
+
</ins><span class="cx">                                 return false;
</span><span class="cx">                         });
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjswpfullscreenjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.js (18136 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.js        2011-06-03 23:30:46 UTC (rev 18136)
+++ trunk/wp-admin/js/wp-fullscreen.js        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var PubSub,fullscreen,wptitlehint;PubSub=function(){this.topics={}};PubSub.prototype.subscribe=function(a,b){if(!this.topics[a]){this.topics[a]=[]}this.topics[a].push(b);return b};PubSub.prototype.unsubscribe=function(b,e){var c,a,d=this.topics[b];if(!d){return e||[]}if(e){for(c=0,a=d.length;c&lt;a;c++){if(e==d[c]){d.splice(c,1)}}return e}else{this.topics[b]=[];return d}};PubSub.prototype.publish=function(c,b){var d,a,e,f=this.topics[c];if(!f){return}b=b||[];for(d=0,a=f.length;d&lt;a;d++){e=(f[d].apply(null,b)===false||e)}return !e};(function(c){var b,e,d,a;fullscreen=b={};e=b.pubsub=new PubSub();timer=0;block=false;a=b.settings={visible:false,mode:&quot;tinymce&quot;,editor_id:&quot;content&quot;,title_id:&quot;title&quot;,timer:0};d=function(i,h,g){g=g||1250;if(block){return}block=true;setTimeout(function(){block=false},400);if(a.timer){clearTimeout(a.timer)}else{e.publish(i)}function f(){e.publish(h);a.timer=0}a.timer=setTimeout(f,g)};b.on=function(){if(a.visi
 ble){return}a.mode=c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)?&quot;tinymce&quot;:&quot;html&quot;;if(!a.element){b.ui.init()}a.is_mce_on=a.has_tinymce&amp;&amp;typeof(tinyMCE.get(a.editor_id))!=&quot;undefined&quot;;b.ui.fade(&quot;show&quot;,&quot;showing&quot;,&quot;shown&quot;)};b.off=function(){if(!a.visible){return}b.ui.fade(&quot;hide&quot;,&quot;hiding&quot;,&quot;hidden&quot;)};b.switchmode=function(g){var f=a.mode;if(!g||!a.visible||!a.has_tinymce){return f}if(f==g){return f}e.publish(&quot;switchMode&quot;,[f,g]);a.mode=g;e.publish(&quot;switchedMode&quot;,[f,g]);return g};b.save=function(){var h=c(&quot;#hiddenaction&quot;),f=h.val(),i=c(&quot;#wp-fullscreen-save img&quot;),g=c(&quot;#wp-fullscreen-save span&quot;);i.show();b.savecontent();h.val(&quot;wp-fullscreen-save-post&quot;);c.post(ajaxurl,c(&quot;form#post&quot;).serialize(),function(j){i.hide();g.show();setTimeout(function(){g.fadeOut(1000)},3000);if(j.last_edited){c(&quot;#wp-fullscreen-save i
 nput&quot;).attr(&quot;title&quot;,j.last_edited)}},&quot;json&quot;);h.val(f)};b.savecontent=function(){var f,g;c(&quot;#&quot;+a.title_id).val(c(&quot;#wp-fullscreen-title&quot;).val());if(a.mode===&quot;tinymce&quot;&amp;&amp;(f=tinyMCE.get(&quot;wp_mce_fullscreen&quot;))){g=f.save()}else{g=c(&quot;#wp_mce_fullscreen&quot;).val()}c(&quot;#&quot;+a.editor_id).val(g);c(document).triggerHandler(&quot;wpcountwords&quot;,[g])};set_title_hint=function(f){if(!f.val().length){f.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;&quot;)}else{f.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};b.dfw_width=function(h){var g=c(&quot;#wp-fullscreen-wrap&quot;),f=g.width();if(!h){g.width(c(&quot;#wp-fullscreen-central-toolbar&quot;).width());deleteUserSetting(&quot;dfw_width&quot;);return}if(f&lt;200||f&gt;1200){return}g.width(h+f);setUserSetting(&quot;dfw_width&quot;,h+f)};e.subscribe(&quot;showToolbar&quot;,function(){a.toolbars.removeClass(&quot;
 fade-1000&quot;).addClass(&quot;fade-300&quot;);b.fade.In(a.toolbars,300,function(){e.publish(&quot;toolbarShown&quot;)},true);c(&quot;#wp-fullscreen-body&quot;).addClass(&quot;wp-fullscreen-focus&quot;)});e.subscribe(&quot;hideToolbar&quot;,function(){a.toolbars.removeClass(&quot;fade-300&quot;).addClass(&quot;fade-1000&quot;);b.fade.Out(a.toolbars,1000,function(){e.publish(&quot;toolbarHidden&quot;)},true);c(&quot;#wp-fullscreen-body&quot;).removeClass(&quot;wp-fullscreen-focus&quot;)});e.subscribe(&quot;toolbarShown&quot;,function(){a.toolbars.removeClass(&quot;fade-300&quot;)});e.subscribe(&quot;toolbarHidden&quot;,function(){a.toolbars.removeClass(&quot;fade-1000&quot;)});e.subscribe(&quot;show&quot;,function(){var f=c(&quot;#wp-fullscreen-title&quot;).val(c(&quot;#&quot;+a.title_id).val());set_title_hint(f);c(&quot;#wp-fullscreen-save input&quot;).attr(&quot;title&quot;,c(&quot;#last-edit&quot;).text());a.textarea_obj.value=edCanvas.value;if(a.has_tinymce&amp;&amp;a.mo
 de===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}a._edCanvas=edCanvas;edCanvas=a.textarea_obj;a.orig_y=c(window).scrollTop()});e.subscribe(&quot;showing&quot;,function(){c(document.body).addClass(&quot;fullscreen-active&quot;);b.refresh_buttons();c(document).bind(&quot;mousemove.fullscreen&quot;,function(f){d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)});d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000);b.bind_resize();setTimeout(b.resize_textarea,200);scrollTo(0,0);c(&quot;#wpadminbar&quot;).hide()});e.subscribe(&quot;shown&quot;,function(){a.visible=true;if(a.has_tinymce&amp;&amp;!a.is_mce_on){htmled=document.getElementById(a.editor_id),old_val=htmled.value;htmled.value=switchEditors.wpautop(old_val);tinyMCE.settings.setup=function(f){f.onInit.add(function(g){g.hide();delete tinyMCE.settings.setup;g.getElement().value=old_val})};tinyMCE.execCommand(&quot;mceAddControl&quot;,false,a.editor_id);a.is_mce_on=true}});e.subscribe(&quot;
 hide&quot;,function(){b.savecontent();c(document).unbind(&quot;.fullscreen&quot;);c(a.textarea_obj).unbind(&quot;.grow&quot;);if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenSave&quot;)}set_title_hint(c(&quot;#&quot;+a.title_id));edCanvas=a._edCanvas;edCanvas.value=a.textarea_obj.value});e.subscribe(&quot;hiding&quot;,function(){if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;&amp;&amp;c(&quot;#&quot;+a.editor_id).is(&quot;:visible&quot;)){switchEditors.go(a.editor_id,&quot;tinymce&quot;)}else{if(a.mode==&quot;html&quot;&amp;&amp;c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)){switchEditors.go(a.editor_id,&quot;html&quot;)}}c(document.body).removeClass(&quot;fullscreen-active&quot;);scrollTo(0,a.orig_y);c(&quot;#wpadminbar&quot;).show()});e.subscribe(&quot;hidden&quot;,function(){a.visible=false;c(&quot;#wp_mce_fullscreen&quot;).removeAttr(&quot;style&quot;);if(a.has_tinymce&amp;&amp;a.is_mce_on){tinyMCE.execCommand(&
 quot;wpFullScreenClose&quot;)}a.textarea_obj.value=&quot;&quot;;b.oldheight=0});e.subscribe(&quot;switchMode&quot;,function(h,g){var f;if(!a.has_tinymce||!a.is_mce_on){return}f=tinyMCE.get(&quot;wp_mce_fullscreen&quot;);if(h===&quot;html&quot;&amp;&amp;g===&quot;tinymce&quot;){a.textarea_obj.value=switchEditors.wpautop(a.textarea_obj.value);if(&quot;undefined&quot;==typeof(f)){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}else{f.show()}}else{if(h===&quot;tinymce&quot;&amp;&amp;g===&quot;html&quot;){if(f){f.hide()}}}});e.subscribe(&quot;switchedMode&quot;,function(g,f){b.refresh_buttons(true);if(f===&quot;html&quot;){setTimeout(b.resize_textarea,200)}});b.b=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;Bold&quot;)}};b.i=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;Italic&quot;)}};b.ul=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;In
 sertUnorderedList&quot;)}};b.ol=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;InsertOrderedList&quot;)}};b.link=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Link&quot;)}else{wpLink.open()}};b.unlink=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;unlink&quot;)}};b.atd=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;mceWritingImprovementTool&quot;)}};b.help=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Help&quot;)}};b.blockquote=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;mceBlockQuote&quot;)}};b.refresh_buttons=function(f){f=f||false;if(a.mode===&quot;html&quot;){c(&quot;#wp-fullscreen-mode-bar&quot;).removeClass(&quot;wp-tmce-mode&quot;).addClass(&quot;wp-html-mode&quot;);if(f){c(&quot;#wp-fu
 llscreen-button-bar&quot;).fadeOut(150,function(){c(this).addClass(&quot;wp-html-mode&quot;).fadeIn(150)})}else{c(&quot;#wp-fullscreen-button-bar&quot;).addClass(&quot;wp-html-mode&quot;)}}else{if(a.mode===&quot;tinymce&quot;){c(&quot;#wp-fullscreen-mode-bar&quot;).removeClass(&quot;wp-html-mode&quot;).addClass(&quot;wp-tmce-mode&quot;);if(f){c(&quot;#wp-fullscreen-button-bar&quot;).fadeOut(150,function(){c(this).removeClass(&quot;wp-html-mode&quot;).fadeIn(150)})}else{c(&quot;#wp-fullscreen-button-bar&quot;).removeClass(&quot;wp-html-mode&quot;)}}}};b.ui={init:function(){var f=c(&quot;#fullscreen-topbar&quot;),h=c(&quot;#wp_mce_fullscreen&quot;),g=0;a.toolbars=f.add(c(&quot;#wp-fullscreen-status&quot;));a.element=c(&quot;#fullscreen-fader&quot;);a.textarea_obj=h[0];a.has_tinymce=typeof(tinyMCE)!=&quot;undefined&quot;;if(!a.has_tinymce){c(&quot;#wp-fullscreen-mode-bar&quot;).hide()}if(wptitlehint){wptitlehint(&quot;wp-fullscreen-title&quot;)}c(document).keyup(function(j){var
  k=j.keyCode||j.charCode,i;if(!fullscreen.settings.visible){return true}if(27==k){i={event:j,what:&quot;dfw&quot;,cb:fullscreen.off,condition:function(){if(c(&quot;#TB_window&quot;).is(&quot;:visible&quot;)||c(&quot;.wp-dialog&quot;).is(&quot;:visible&quot;)){return false}return true}};if(!jQuery(document).triggerHandler(&quot;wp_CloseOnEscape&quot;,[i])){fullscreen.off()}}return false});if(typeof(wpWordCount)!=&quot;undefined&quot;){h.keyup(function(j){var i=j.keyCode||j.charCode;if(i==g){return true}if(13==i||8==g||46==g){c(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()])}g=i;return true})}f.mouseenter(function(i){a.toolbars.addClass(&quot;fullscreen-make-sticky&quot;);c(document).unbind(&quot;.fullscreen&quot;);clearTimeout(a.timer);a.timer=0}).mouseleave(function(i){a.toolbars.removeClass(&quot;fullscreen-make-sticky&quot;);if(a.visible){c(document).bind(&quot;mousemove.fullscreen&quot;,function(j){d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)})}})}
 ,fade:function(g,f,h){if(!a.element){b.ui.init()}if(g&amp;&amp;!e.publish(g)){return}b.fade.In(a.element,600,function(){if(f){e.publish(f)}b.fade.Out(a.element,600,function(){if(h){e.publish(h)}})})}};b.fade={transitionend:&quot;transitionend webkitTransitionEnd oTransitionEnd&quot;,sensitivity:100,In:function(g,h,i,f){i=i||c.noop;h=h||400;f=f||false;if(b.fade.transitions){if(g.is(&quot;:visible&quot;)){g.addClass(&quot;fade-trigger&quot;);return g}g.show();g.first().one(this.transitionend,function(){i()});setTimeout(function(){g.addClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{if(f){g.stop()}g.css(&quot;opacity&quot;,1);g.first().fadeIn(h,i);if(g.length&gt;1){g.not(&quot;:first&quot;).fadeIn(h)}}return g},Out:function(g,h,i,f){i=i||c.noop;h=h||400;f=f||false;if(!g.is(&quot;:visible&quot;)){return g}if(b.fade.transitions){g.first().one(b.fade.transitionend,function(){if(g.hasClass(&quot;fade-trigger&quot;)){return}g.hide();i()});setTimeout(function(){g.removeClass(
 &quot;fade-trigger&quot;)},this.sensitivity)}else{if(f){g.stop()}g.first().fadeOut(h,i);if(g.length&gt;1){g.not(&quot;:first&quot;).fadeOut(h)}}return g},transitions:(function(){var f=document.documentElement.style;return(typeof(f.WebkitTransition)==&quot;string&quot;||typeof(f.MozTransition)==&quot;string&quot;||typeof(f.OTransition)==&quot;string&quot;||typeof(f.transition)==&quot;string&quot;)})()};b.bind_resize=function(){c(a.textarea_obj).bind(&quot;keypress.grow click.grow paste.grow&quot;,function(){setTimeout(b.resize_textarea,200)})};b.oldheight=0;b.resize_textarea=function(){var f=a.textarea_obj,g;g=f.scrollHeight&gt;300?f.scrollHeight:300;if(g!=b.oldheight){f.style.height=g+&quot;px&quot;;b.oldheight=g}}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var PubSub,fullscreen,wptitlehint;PubSub=function(){this.topics={}};PubSub.prototype.subscribe=function(a,b){if(!this.topics[a]){this.topics[a]=[]}this.topics[a].push(b);return b};PubSub.prototype.unsubscribe=function(b,e){var c,a,d=this.topics[b];if(!d){return e||[]}if(e){for(c=0,a=d.length;c&lt;a;c++){if(e==d[c]){d.splice(c,1)}}return e}else{this.topics[b]=[];return d}};PubSub.prototype.publish=function(c,b){var d,a,e,f=this.topics[c];if(!f){return}b=b||[];for(d=0,a=f.length;d&lt;a;d++){e=(f[d].apply(null,b)===false||e)}return !e};(function(c){var b,e,d,a;fullscreen=b={};e=b.pubsub=new PubSub();timer=0;block=false;a=b.settings={visible:false,mode:&quot;tinymce&quot;,editor_id:&quot;content&quot;,title_id:&quot;title&quot;,timer:0,toolbar_shown:false};d=b.bounder=function(i,h,g){g=g||1250;if(block){return}block=true;setTimeout(function(){block=false},400);if(a.timer){clearTimeout(a.timer)}else{e.publish(i)}function f(){e.publish(h);a.timer=0}a.timer=setTimeout(f
 ,g)};b.on=function(){if(a.visible){return}a.mode=c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)?&quot;tinymce&quot;:&quot;html&quot;;if(!a.element){b.ui.init()}a.is_mce_on=a.has_tinymce&amp;&amp;typeof(tinyMCE.get(a.editor_id))!=&quot;undefined&quot;;b.ui.fade(&quot;show&quot;,&quot;showing&quot;,&quot;shown&quot;)};b.off=function(){if(!a.visible){return}b.ui.fade(&quot;hide&quot;,&quot;hiding&quot;,&quot;hidden&quot;)};b.switchmode=function(g){var f=a.mode;if(!g||!a.visible||!a.has_tinymce){return f}if(f==g){return f}e.publish(&quot;switchMode&quot;,[f,g]);a.mode=g;e.publish(&quot;switchedMode&quot;,[f,g]);return g};b.save=function(){var h=c(&quot;#hiddenaction&quot;),f=h.val(),i=c(&quot;#wp-fullscreen-save img&quot;),g=c(&quot;#wp-fullscreen-save span&quot;);i.show();b.savecontent();h.val(&quot;wp-fullscreen-save-post&quot;);c.post(ajaxurl,c(&quot;form#post&quot;).serialize(),function(j){i.hide();g.show();setTimeout(function(){g.fadeOut(1000)},3000);if(j.last_edited)
 {c(&quot;#wp-fullscreen-save input&quot;).attr(&quot;title&quot;,j.last_edited)}},&quot;json&quot;);h.val(f)};b.savecontent=function(){var f,g;c(&quot;#&quot;+a.title_id).val(c(&quot;#wp-fullscreen-title&quot;).val());if(a.mode===&quot;tinymce&quot;&amp;&amp;(f=tinyMCE.get(&quot;wp_mce_fullscreen&quot;))){g=f.save()}else{g=c(&quot;#wp_mce_fullscreen&quot;).val()}c(&quot;#&quot;+a.editor_id).val(g);c(document).triggerHandler(&quot;wpcountwords&quot;,[g])};set_title_hint=function(f){if(!f.val().length){f.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;&quot;)}else{f.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};b.dfw_width=function(h){var g=c(&quot;#wp-fullscreen-wrap&quot;),f=g.width();if(!h){g.width(c(&quot;#wp-fullscreen-central-toolbar&quot;).width());deleteUserSetting(&quot;dfw_width&quot;);return}if(f&lt;200||f&gt;1200){return}g.width(h+f);setUserSetting(&quot;dfw_width&quot;,h+f)};e.subscribe(&quot;showToolbar&quot;,function()
 {a.toolbars.removeClass(&quot;fade-1000&quot;).addClass(&quot;fade-300&quot;);b.fade.In(a.toolbars,300,function(){e.publish(&quot;toolbarShown&quot;)},true);c(&quot;#wp-fullscreen-body&quot;).addClass(&quot;wp-fullscreen-focus&quot;);a.toolbar_shown=true});e.subscribe(&quot;hideToolbar&quot;,function(){a.toolbars.removeClass(&quot;fade-300&quot;).addClass(&quot;fade-1000&quot;);b.fade.Out(a.toolbars,1000,function(){e.publish(&quot;toolbarHidden&quot;)},true);c(&quot;#wp-fullscreen-body&quot;).removeClass(&quot;wp-fullscreen-focus&quot;)});e.subscribe(&quot;toolbarShown&quot;,function(){a.toolbars.removeClass(&quot;fade-300&quot;)});e.subscribe(&quot;toolbarHidden&quot;,function(){a.toolbars.removeClass(&quot;fade-1000&quot;);a.toolbar_shown=false});e.subscribe(&quot;show&quot;,function(){var f=c(&quot;#wp-fullscreen-title&quot;).val(c(&quot;#&quot;+a.title_id).val());set_title_hint(f);c(&quot;#wp-fullscreen-save input&quot;).attr(&quot;title&quot;,c(&quot;#last-edit&quot;).t
 ext());a.textarea_obj.value=edCanvas.value;if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}a._edCanvas=edCanvas;edCanvas=a.textarea_obj;a.orig_y=c(window).scrollTop()});e.subscribe(&quot;showing&quot;,function(){c(document.body).addClass(&quot;fullscreen-active&quot;);b.refresh_buttons();c(document).bind(&quot;mousemove.fullscreen&quot;,function(f){d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)});d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000);b.bind_resize();setTimeout(b.resize_textarea,200);scrollTo(0,0);c(&quot;#wpadminbar&quot;).hide()});e.subscribe(&quot;shown&quot;,function(){a.visible=true;if(a.has_tinymce&amp;&amp;!a.is_mce_on){htmled=document.getElementById(a.editor_id),old_val=htmled.value;htmled.value=switchEditors.wpautop(old_val);tinyMCE.settings.setup=function(f){f.onInit.add(function(g){g.hide();delete tinyMCE.settings.setup;g.getElement().value=old_val})};tinyMCE.execCommand(&quot;mceA
 ddControl&quot;,false,a.editor_id);a.is_mce_on=true}});e.subscribe(&quot;hide&quot;,function(){b.savecontent();c(document).unbind(&quot;.fullscreen&quot;);c(a.textarea_obj).unbind(&quot;.grow&quot;);if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenSave&quot;)}set_title_hint(c(&quot;#&quot;+a.title_id));edCanvas=a._edCanvas;edCanvas.value=a.textarea_obj.value});e.subscribe(&quot;hiding&quot;,function(){if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;&amp;&amp;c(&quot;#&quot;+a.editor_id).is(&quot;:visible&quot;)){switchEditors.go(a.editor_id,&quot;tinymce&quot;)}else{if(a.mode==&quot;html&quot;&amp;&amp;c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)){switchEditors.go(a.editor_id,&quot;html&quot;)}}c(document.body).removeClass(&quot;fullscreen-active&quot;);scrollTo(0,a.orig_y);c(&quot;#wpadminbar&quot;).show()});e.subscribe(&quot;hidden&quot;,function(){a.visible=false;c(&quot;#wp_mce_fullscreen&quot;).removeAttr(&quot;
 style&quot;);if(a.has_tinymce&amp;&amp;a.is_mce_on){tinyMCE.execCommand(&quot;wpFullScreenClose&quot;)}a.textarea_obj.value=&quot;&quot;;b.oldheight=0});e.subscribe(&quot;switchMode&quot;,function(h,g){var f;if(!a.has_tinymce||!a.is_mce_on){return}f=tinyMCE.get(&quot;wp_mce_fullscreen&quot;);if(h===&quot;html&quot;&amp;&amp;g===&quot;tinymce&quot;){a.textarea_obj.value=switchEditors.wpautop(a.textarea_obj.value);if(&quot;undefined&quot;==typeof(f)){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}else{f.show()}}else{if(h===&quot;tinymce&quot;&amp;&amp;g===&quot;html&quot;){if(f){f.hide()}}}});e.subscribe(&quot;switchedMode&quot;,function(g,f){b.refresh_buttons(true);if(f===&quot;html&quot;){setTimeout(b.resize_textarea,200)}});b.b=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;Bold&quot;)}};b.i=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;Italic&quot;)}};b.ul=function(){if(a.has_ti
 nymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;InsertUnorderedList&quot;)}};b.ol=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;InsertOrderedList&quot;)}};b.link=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Link&quot;)}else{wpLink.open()}};b.unlink=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;unlink&quot;)}};b.atd=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;mceWritingImprovementTool&quot;)}};b.help=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Help&quot;)}};b.blockquote=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;mceBlockQuote&quot;)}};b.refresh_buttons=function(f){f=f||false;if(a.mode===&quot;html&quot;){c(&quot;#wp-fullscreen-mode-bar&quot;).removeClass(&quot;wp
 -tmce-mode&quot;).addClass(&quot;wp-html-mode&quot;);if(f){c(&quot;#wp-fullscreen-button-bar&quot;).fadeOut(150,function(){c(this).addClass(&quot;wp-html-mode&quot;).fadeIn(150)})}else{c(&quot;#wp-fullscreen-button-bar&quot;).addClass(&quot;wp-html-mode&quot;)}}else{if(a.mode===&quot;tinymce&quot;){c(&quot;#wp-fullscreen-mode-bar&quot;).removeClass(&quot;wp-html-mode&quot;).addClass(&quot;wp-tmce-mode&quot;);if(f){c(&quot;#wp-fullscreen-button-bar&quot;).fadeOut(150,function(){c(this).removeClass(&quot;wp-html-mode&quot;).fadeIn(150)})}else{c(&quot;#wp-fullscreen-button-bar&quot;).removeClass(&quot;wp-html-mode&quot;)}}}};b.ui={init:function(){var f=c(&quot;#fullscreen-topbar&quot;),h=c(&quot;#wp_mce_fullscreen&quot;),g=0;a.toolbars=f.add(c(&quot;#wp-fullscreen-status&quot;));a.element=c(&quot;#fullscreen-fader&quot;);a.textarea_obj=h[0];a.has_tinymce=typeof(tinyMCE)!=&quot;undefined&quot;;if(!a.has_tinymce){c(&quot;#wp-fullscreen-mode-bar&quot;).hide()}if(wptitlehint){wptit
 lehint(&quot;wp-fullscreen-title&quot;)}c(document).keyup(function(k){var l=k.keyCode||k.charCode,i,j;if(!fullscreen.settings.visible){return true}if(navigator.platform&amp;&amp;navigator.platform.indexOf(&quot;Mac&quot;)!=-1){i=k.ctrlKey}else{i=k.altKey}if(27==l){j={event:k,what:&quot;dfw&quot;,cb:fullscreen.off,condition:function(){if(c(&quot;#TB_window&quot;).is(&quot;:visible&quot;)||c(&quot;.wp-dialog&quot;).is(&quot;:visible&quot;)){return false}return true}};if(!jQuery(document).triggerHandler(&quot;wp_CloseOnEscape&quot;,[j])){fullscreen.off()}}if(i&amp;&amp;(61==l||107==l||187==l)){b.dfw_width(25)}if(i&amp;&amp;(45==l||109==l||189==l)){b.dfw_width(-25)}if(i&amp;&amp;48==l){b.dfw_width(0)}return false});if(typeof(wpWordCount)!=&quot;undefined&quot;){h.keyup(function(j){var i=j.keyCode||j.charCode;if(i==g){return true}if(13==i||8==g||46==g){c(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()])}g=i;return true})}f.mouseenter(function(i){a.toolbars.addClass(&qu
 ot;fullscreen-make-sticky&quot;);c(document).unbind(&quot;.fullscreen&quot;);clearTimeout(a.timer);a.timer=0}).mouseleave(function(i){a.toolbars.removeClass(&quot;fullscreen-make-sticky&quot;);if(a.visible){c(document).bind(&quot;mousemove.fullscreen&quot;,function(j){d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)})}})},fade:function(g,f,h){if(!a.element){b.ui.init()}if(g&amp;&amp;!e.publish(g)){return}b.fade.In(a.element,600,function(){if(f){e.publish(f)}b.fade.Out(a.element,600,function(){if(h){e.publish(h)}})})}};b.fade={transitionend:&quot;transitionend webkitTransitionEnd oTransitionEnd&quot;,sensitivity:100,In:function(g,h,i,f){i=i||c.noop;h=h||400;f=f||false;if(b.fade.transitions){if(g.is(&quot;:visible&quot;)){g.addClass(&quot;fade-trigger&quot;);return g}g.show();g.first().one(this.transitionend,function(){i()});setTimeout(function(){g.addClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{if(f){g.stop()}g.css(&quot;opacity&quot;,1);g.first().fadeIn(h,i
 );if(g.length&gt;1){g.not(&quot;:first&quot;).fadeIn(h)}}return g},Out:function(g,h,i,f){i=i||c.noop;h=h||400;f=f||false;if(!g.is(&quot;:visible&quot;)){return g}if(b.fade.transitions){g.first().one(b.fade.transitionend,function(){if(g.hasClass(&quot;fade-trigger&quot;)){return}g.hide();i()});setTimeout(function(){g.removeClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{if(f){g.stop()}g.first().fadeOut(h,i);if(g.length&gt;1){g.not(&quot;:first&quot;).fadeOut(h)}}return g},transitions:(function(){var f=document.documentElement.style;return(typeof(f.WebkitTransition)==&quot;string&quot;||typeof(f.MozTransition)==&quot;string&quot;||typeof(f.OTransition)==&quot;string&quot;||typeof(f.transition)==&quot;string&quot;)})()};b.bind_resize=function(){c(a.textarea_obj).bind(&quot;keypress.grow click.grow paste.grow&quot;,function(){setTimeout(b.resize_textarea,200)})};b.oldheight=0;b.resize_textarea=function(){var f=a.textarea_obj,g;g=f.scrollHeight&gt;300?f.scrollHeight:300;i
 f(g!=b.oldheight){f.style.height=g+&quot;px&quot;;b.oldheight=g}}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpfullscreencsswpfullscreencss"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css (0 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css                                (rev 0)
+++ trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+/*
+Distraction Free Writing mode TinyMCE Styles
+*/
+
+html, body {
+        background: transparent;
+        width: auto !important;
+        max-width: none !important;
+        margin: 0 !important;
+        padding: 0 !important;
+}
</ins></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpfullscreeneditor_plugindevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js (18136 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js        2011-06-03 23:30:46 UTC (rev 18136)
+++ trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -49,6 +49,7 @@
</span><span class="cx">                                 s.wp_fullscreen_editor_id = ed.id;
</span><span class="cx">                                 s.theme_advanced_resizing = false;
</span><span class="cx">                                 s.theme_advanced_statusbar_location = 'none';
</span><ins>+                                s.content_css = s.content_css + ',' + s.wp_fullscreen_content_css;
</ins><span class="cx">                                 s.height = tinymce.isIE ? b.scrollHeight : b.offsetHeight;
</span><span class="cx"> 
</span><span class="cx">                                 tinymce.each(ed.getParam('wp_fullscreen_settings'), function(v, k) {
</span><span class="lines">@@ -83,6 +84,11 @@
</span><span class="cx">                                 });
</span><span class="cx"> 
</span><span class="cx">                                 fsed.render();
</span><ins>+
+                                fsed.dom.bind( fsed.getWin(), 'mousemove', function(e){
+                                        if ( !fullscreen.settings.toolbar_shown )
+                                                fullscreen.bounder( 'showToolbar', 'hideToolbar', 2000 );
+                                });
</ins><span class="cx">                         });
</span><span class="cx"> 
</span><span class="cx">                         // Register buttons
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpfullscreeneditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js (18136 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js        2011-06-03 23:30:46 UTC (rev 18136)
+++ trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){tinymce.create(&quot;tinymce.plugins.wpFullscreenPlugin&quot;,{init:function(a,c){var d=this,g=0,e={},f=tinymce.DOM;a.addCommand(&quot;wpFullScreenClose&quot;,function(){if(a.getParam(&quot;wp_fullscreen_is_enabled&quot;)){f.win.setTimeout(function(){tinyMCE.remove(a);f.remove(&quot;wp_mce_fullscreen_parent&quot;);tinyMCE.settings=tinyMCE.oldSettings},10)}});a.addCommand(&quot;wpFullScreenSave&quot;,function(){var h=tinyMCE.get(&quot;wp_mce_fullscreen&quot;),i;h.focus();i=tinyMCE.get(h.getParam(&quot;wp_fullscreen_editor_id&quot;));i.setContent(h.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})});a.addCommand(&quot;wpFullScreenInit&quot;,function(){var j=a.getDoc(),h=j.body,i;if(a.id==&quot;wp_mce_fullscreen&quot;){return}tinyMCE.oldSettings=tinyMCE.settings;tinymce.each(a.settings,function(k,l){e[l]=k});e.id=&quot;wp_mce_fullscreen&quot;;e.wp_fullscreen_is_enabled=true;e.wp_fullscreen_editor_id=a.id;e.theme_advanced_resizing=false;e.the
 me_advanced_statusbar_location=&quot;none&quot;;e.height=tinymce.isIE?h.scrollHeight:h.offsetHeight;tinymce.each(a.getParam(&quot;wp_fullscreen_settings&quot;),function(m,l){e[l]=m});i=new tinymce.Editor(&quot;wp_mce_fullscreen&quot;,e);i.onInit.add(function(k){var m=tinymce.DOM,l=m.select(&quot;a.mceButton&quot;,m.get(&quot;wp-fullscreen-buttons&quot;));if(!a.isHidden()){k.setContent(a.getContent())}else{k.setContent(switchEditors.wpautop(k.getElement().value))}setTimeout(function(){k.onNodeChange.add(function(o,n,p){tinymce.each(l,function(s){var r,q;if(r=m.get(&quot;wp_mce_fullscreen_&quot;+s.id.substr(6))){q=r.className;if(q){s.className=q}}})})},1000);k.focus()});i.render()});if(&quot;undefined&quot;!=fullscreen){a.addButton(&quot;fullscreen&quot;,{title:&quot;fullscreen.desc&quot;,onclick:function(){fullscreen.on()}})}if(a.getParam(&quot;fullscreen_is_enabled&quot;)||!a.getParam(&quot;wp_fullscreen_is_enabled&quot;)){return}function b(){var k=a.getDoc(),h=k.body,m=k.do
 cumentElement,j=tinymce.DOM,l,i;if(tinymce.isIE){i=h.scrollHeight}else{if(tinymce.isWebKit){i=h.offsetHeight}else{i=m.offsetHeight}}l=(i&gt;300)?i:300;if(g!=l){g=l;j.setStyle(j.get(a.id+&quot;_ifr&quot;),&quot;height&quot;,l+&quot;px&quot;)}}a.onInit.add(function(i,h){i.onChange.add(b);i.onSetContent.add(b);i.onPaste.add(b);i.onKeyUp.add(b);i.onPostRender.add(b);i.getBody().style.overflowY=&quot;hidden&quot;});if(a.getParam(&quot;autoresize_on_init&quot;,true)){a.onLoadContent.add(function(i,h){setTimeout(function(){b()},1200)})}a.addCommand(&quot;wpAutoResize&quot;,b)},getInfo:function(){return{longname:&quot;WP Fullscreen&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpfullscreen&quot;,tinymce.plugins.wpFullscreenPlugin)})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(){tinymce.create(&quot;tinymce.plugins.wpFullscreenPlugin&quot;,{init:function(a,c){var d=this,g=0,e={},f=tinymce.DOM;a.addCommand(&quot;wpFullScreenClose&quot;,function(){if(a.getParam(&quot;wp_fullscreen_is_enabled&quot;)){f.win.setTimeout(function(){tinyMCE.remove(a);f.remove(&quot;wp_mce_fullscreen_parent&quot;);tinyMCE.settings=tinyMCE.oldSettings},10)}});a.addCommand(&quot;wpFullScreenSave&quot;,function(){var h=tinyMCE.get(&quot;wp_mce_fullscreen&quot;),i;h.focus();i=tinyMCE.get(h.getParam(&quot;wp_fullscreen_editor_id&quot;));i.setContent(h.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})});a.addCommand(&quot;wpFullScreenInit&quot;,function(){var j=a.getDoc(),h=j.body,i;if(a.id==&quot;wp_mce_fullscreen&quot;){return}tinyMCE.oldSettings=tinyMCE.settings;tinymce.each(a.settings,function(k,l){e[l]=k});e.id=&quot;wp_mce_fullscreen&quot;;e.wp_fullscreen_is_enabled=true;e.wp_fullscreen_editor_id=a.id;e.theme_advanced_resizing=false;e.the
 me_advanced_statusbar_location=&quot;none&quot;;e.content_css=e.content_css+&quot;,&quot;+e.wp_fullscreen_content_css;e.height=tinymce.isIE?h.scrollHeight:h.offsetHeight;tinymce.each(a.getParam(&quot;wp_fullscreen_settings&quot;),function(m,l){e[l]=m});i=new tinymce.Editor(&quot;wp_mce_fullscreen&quot;,e);i.onInit.add(function(k){var m=tinymce.DOM,l=m.select(&quot;a.mceButton&quot;,m.get(&quot;wp-fullscreen-buttons&quot;));if(!a.isHidden()){k.setContent(a.getContent())}else{k.setContent(switchEditors.wpautop(k.getElement().value))}setTimeout(function(){k.onNodeChange.add(function(o,n,p){tinymce.each(l,function(s){var r,q;if(r=m.get(&quot;wp_mce_fullscreen_&quot;+s.id.substr(6))){q=r.className;if(q){s.className=q}}})})},1000);k.focus()});i.render();i.dom.bind(i.getWin(),&quot;mousemove&quot;,function(k){if(!fullscreen.settings.toolbar_shown){fullscreen.bounder(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)}})});if(&quot;undefined&quot;!=fullscreen){a.addButton(&quot;fu
 llscreen&quot;,{title:&quot;fullscreen.desc&quot;,onclick:function(){fullscreen.on()}})}if(a.getParam(&quot;fullscreen_is_enabled&quot;)||!a.getParam(&quot;wp_fullscreen_is_enabled&quot;)){return}function b(){var k=a.getDoc(),h=k.body,m=k.documentElement,j=tinymce.DOM,l,i;if(tinymce.isIE){i=h.scrollHeight}else{if(tinymce.isWebKit){i=h.offsetHeight}else{i=m.offsetHeight}}l=(i&gt;300)?i:300;if(g!=l){g=l;j.setStyle(j.get(a.id+&quot;_ifr&quot;),&quot;height&quot;,l+&quot;px&quot;)}}a.onInit.add(function(i,h){i.onChange.add(b);i.onSetContent.add(b);i.onPaste.add(b);i.onKeyUp.add(b);i.onPostRender.add(b);i.getBody().style.overflowY=&quot;hidden&quot;});if(a.getParam(&quot;autoresize_on_init&quot;,true)){a.onLoadContent.add(function(i,h){setTimeout(function(){b()},1200)})}a.addCommand(&quot;wpAutoResize&quot;,b)},getInfo:function(){return{longname:&quot;WP Fullscreen&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0
 &quot;}}});tinymce.PluginManager.add(&quot;wpfullscreen&quot;,tinymce.plugins.wpFullscreenPlugin)})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcewpmcehelpphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/wp-mce-help.php (18136 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/wp-mce-help.php        2011-06-03 23:30:46 UTC (rev 18136)
+++ trunk/wp-includes/js/tinymce/wp-mce-help.php        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -234,12 +234,17 @@
</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><del>-                
</del><ins>+
</ins><span class="cx">                 &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;
</span><span class="cx">                 &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;
</span><span class="cx">                 &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;
</span><span class="cx">                 &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;
</span><span class="cx">                 &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;
</span><ins>+
+                &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;
+                &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;
+                        &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;
+                &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;
</ins><span class="cx">         &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;p&gt;&lt;?php _e('The following shortcuts use different access keys: Alt + Shift + letter.') ?&gt;&lt;/p&gt;
</span></span></pre></div>
<a id="trunkwpincludesjstinymcewptinymcejsgz"></a>
<div class="binary"><h4>Modified: trunk/wp-includes/js/tinymce/wp-tinymce.js.gz</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (18136 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-06-03 23:30:46 UTC (rev 18136)
+++ trunk/wp-includes/script-loader.php        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx">         $scripts-&gt;add( 'editor', &quot;/wp-admin/js/editor$suffix.js&quot;, array('utils','jquery'), '20110411' );
</span><span class="cx">         $scripts-&gt;add_data( 'editor', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wp-fullscreen', &quot;/wp-admin/js/wp-fullscreen$suffix.js&quot;, array('jquery'), '20110530' );
</del><ins>+        $scripts-&gt;add( 'wp-fullscreen', &quot;/wp-admin/js/wp-fullscreen$suffix.js&quot;, array('jquery'), '20110603' );
</ins><span class="cx">         $scripts-&gt;add_data( 'wp-fullscreen', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6.1');
</span></span></pre></div>
<a id="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (18136 => 18137)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2011-06-03 23:30:46 UTC (rev 18136)
+++ trunk/wp-includes/version.php        2011-06-04 00:46:47 UTC (rev 18137)
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global string $tinymce_version
</span><span class="cx">  */
</span><del>-$tinymce_version = '342-20110601';
</del><ins>+$tinymce_version = '342-20110603';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the cache manifest version
</span></span></pre>
</div>
</div>

</body>
</html>