<!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>[18142] trunk/wp-includes: Fix WebKit browsers reporting document.body height shorter than it is, add classes to TinyMCE's body: 'wp-editor' or 'wp-fullscreen-editor', fix mousemove event in IE, fixes #17664</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/18142">18142</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-06-05 00:06:28 +0000 (Sun, 05 Jun 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fix WebKit browsers reporting document.body height shorter than it is, add classes to TinyMCE's body: 'wp-editor' or 'wp-fullscreen-editor', fix mousemove event in IE, fixes <a href="http://trac.wordpress.org/ticket/17664">#17664</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjstinymcepluginswordpresseditor_plugindevjs">trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswordpresseditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpfullscreencsswpfullscreencss">trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css</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="#trunkwpincludesjstinymcethemesadvancedskinswp_themecontentcss">trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css</a></li>
<li><a href="#trunkwpincludesjstinymcewptinymcejsgz">trunk/wp-includes/js/tinymce/wp-tinymce.js.gz</a></li>
<li><a href="#trunkwpincludesversionphp">trunk/wp-includes/version.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_plugindevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js (18141 => 18142)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2011-06-04 22:05:29 UTC (rev 18141)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2011-06-05 00:06:28 UTC (rev 18142)
</span><span class="lines">@@ -186,6 +186,9 @@
</span><span class="cx">                                         }
</span><span class="cx">                                 });
</span><span class="cx"> 
</span><ins>+                                if ( ed.id != 'wp_mce_fullscreen' )
+                                        ed.dom.addClass(ed.getBody(), 'wp-editor');
+
</ins><span class="cx">                                 // remove invalid parent paragraphs when pasting HTML and/or switching to the HTML editor and back
</span><span class="cx">                                 ed.onBeforeSetContent.add(function(ed, o) {
</span><span class="cx">                                         if ( o.content ) {
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js (18141 => 18142)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2011-06-04 22:05:29 UTC (rev 18141)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2011-06-05 00:06:28 UTC (rev 18142)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){var a=tinymce.DOM;tinymce.create(&quot;tinymce.plugins.WordPress&quot;,{mceTout:0,init:function(c,d){var e=this,h=c.getParam(&quot;wordpress_adv_toolbar&quot;,&quot;toolbar2&quot;),g=0,f,b;f='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';if(getUserSetting(&quot;hidetb&quot;,&quot;0&quot;)==&quot;1&quot;){c.settings.wordpress_adv_hidden=0}c.onPostRender.add(function(){var i=c.controlManager.get(h);if(c.getParam(&quot;wordpress_adv_hidden&quot;,1)&amp;&amp;i){a.hide(i.id);e._resizeIframe(c,h,28)}});c.addCommand(&quot;WP_More&quot;,function(){c.execCommand(&quot;mceInsertContent&quot;,0,f)});c.addCommand(&quot;WP_Page&quot;,function(){c.execCommand(&quot;mceInsertContent&quo
 t;,0,b)});c.addCommand(&quot;WP_Help&quot;,function(){c.windowManager.open({url:tinymce.baseURL+&quot;/wp-mce-help.php&quot;,width:450,height:420,inline:1})});c.addCommand(&quot;WP_Adv&quot;,function(){var i=c.controlManager,j=i.get(h).id;if(&quot;undefined&quot;==j){return}if(a.isHidden(j)){i.setActive(&quot;wp_adv&quot;,1);a.show(j);e._resizeIframe(c,h,-28);c.settings.wordpress_adv_hidden=0;setUserSetting(&quot;hidetb&quot;,&quot;1&quot;)}else{i.setActive(&quot;wp_adv&quot;,0);a.hide(j);e._resizeIframe(c,h,28);c.settings.wordpress_adv_hidden=1;setUserSetting(&quot;hidetb&quot;,&quot;0&quot;)}});c.addButton(&quot;wp_more&quot;,{title:&quot;wordpress.wp_more_desc&quot;,cmd:&quot;WP_More&quot;});c.addButton(&quot;wp_page&quot;,{title:&quot;wordpress.wp_page_desc&quot;,image:d+&quot;/img/page.gif&quot;,cmd:&quot;WP_Page&quot;});c.addButton(&quot;wp_help&quot;,{title:&quot;wordpress.wp_help_desc&quot;,cmd:&quot;WP_Help&quot;});c.addButton(&quot;wp_adv&quot;,{title:&quot;wordpre
 ss.wp_adv_desc&quot;,cmd:&quot;WP_Adv&quot;});c.addButton(&quot;add_media&quot;,{title:&quot;wordpress.add_media&quot;,image:d+&quot;/img/media.gif&quot;,onclick:function(){tb_show(&quot;&quot;,tinymce.DOM.get(&quot;add_media&quot;).href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)}});c.addButton(&quot;add_image&quot;,{title:&quot;wordpress.add_image&quot;,image:d+&quot;/img/image.gif&quot;,onclick:function(){tb_show(&quot;&quot;,tinymce.DOM.get(&quot;add_image&quot;).href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)}});c.addButton(&quot;add_video&quot;,{title:&quot;wordpress.add_video&quot;,image:d+&quot;/img/video.gif&quot;,onclick:function(){tb_show(&quot;&quot;,tinymce.DOM.get(&quot;add_video&quot;).href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&
 quot;,&quot;999999&quot;)}});c.addButton(&quot;add_audio&quot;,{title:&quot;wordpress.add_audio&quot;,image:d+&quot;/img/audio.gif&quot;,onclick:function(){tb_show(&quot;&quot;,tinymce.DOM.get(&quot;add_audio&quot;).href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)}});c.onBeforeExecCommand.add(function(p,m,s,l,j){var v=tinymce.DOM,k,i,r,u,t,q;if(&quot;mceFullScreen&quot;==m){if(&quot;mce_fullscreen&quot;!=p.id&amp;&amp;v.get(&quot;add_audio&quot;)&amp;&amp;v.get(&quot;add_video&quot;)&amp;&amp;v.get(&quot;add_image&quot;)&amp;&amp;v.get(&quot;add_media&quot;)){p.settings.theme_advanced_buttons1+=&quot;,|,add_image,add_video,add_audio,add_media&quot;}}if(&quot;JustifyLeft&quot;==m||&quot;JustifyRight&quot;==m||&quot;JustifyCenter&quot;==m){k=p.selection.getNode();if(k.nodeName==&quot;IMG&quot;){q=m.substr(7).toLowerCase();t=&quot;align&quot;+q;i=p.dom.getParent(k,&quot;dl.wp-caption&quot;);r=p
 .dom.getParent(k,&quot;div.mceTemp&quot;);if(i&amp;&amp;r){u=p.dom.hasClass(i,t)?&quot;alignnone&quot;:t;i.className=i.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);p.dom.addClass(i,u);if(u==&quot;aligncenter&quot;){p.dom.addClass(r,&quot;mceIEcenter&quot;)}else{p.dom.removeClass(r,&quot;mceIEcenter&quot;)}j.terminate=true;p.execCommand(&quot;mceRepaint&quot;)}else{if(p.dom.hasClass(k,t)){p.dom.addClass(k,&quot;alignnone&quot;)}else{p.dom.removeClass(k,&quot;alignnone&quot;)}}}}});c.onInit.add(function(i){i.onNodeChange.add(function(k,j,m){var l;if(m.nodeName==&quot;IMG&quot;){l=k.dom.getParent(m,&quot;dl.wp-caption&quot;)}else{if(m.nodeName==&quot;DIV&quot;&amp;&amp;k.dom.hasClass(m,&quot;mceTemp&quot;)){l=m.firstChild;if(!k.dom.hasClass(l,&quot;wp-caption&quot;)){l=false}}}if(l){if(k.dom.hasClass(l,&quot;alignleft&quot;)){j.setActive(&quot;justifyleft&quot;,1)}else{if(k.dom.hasClass(l,&quot;alignright&quot;)){j.setActive(&quot;justifyright&quot;,1)}else{if(k.dom.
 hasClass(l,&quot;aligncenter&quot;)){j.setActive(&quot;justifycenter&quot;,1)}}}}});i.onBeforeSetContent.add(function(j,k){if(k.content){k.content=k.content.replace(/&lt;p&gt;\s*&lt;(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre|address)( [^&gt;]*)?&gt;/gi,&quot;&lt;$1$2&gt;&quot;);k.content=k.content.replace(/&lt;\/(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre|address)&gt;\s*&lt;\/p&gt;/gi,&quot;&lt;/$1&gt;&quot;)}})});if(&quot;undefined&quot;!=typeof(jQuery)){c.onKeyUp.add(function(j,l){var i=l.keyCode||l.charCode;if(i==g){return}if(13==i||8==g||46==g){jQuery(document).triggerHandler(&quot;wpcountwords&quot;,[j.getContent({format:&quot;raw&quot;})])}g=i})}c.onSaveContent.addToTop(function(i,j){j.content=j.content.replace(/&lt;p&gt;(&lt;br ?\/?&gt;|\u00a0|\uFEFF)?&lt;\/p&gt;/g,&quot;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&quot;)});c.onSaveContent.add(function(i,j){if(typeof(switchEditors)==&quot;object&quot;){if(i.isHidden()){j.content=j.element.value}else{j.content=swit
 chEditors.pre_wpautop(j.content)}}});e._handleMoreBreak(c,d);c.addShortcut(&quot;alt+shift+c&quot;,c.getLang(&quot;justifycenter_desc&quot;),&quot;JustifyCenter&quot;);c.addShortcut(&quot;alt+shift+r&quot;,c.getLang(&quot;justifyright_desc&quot;),&quot;JustifyRight&quot;);c.addShortcut(&quot;alt+shift+l&quot;,c.getLang(&quot;justifyleft_desc&quot;),&quot;JustifyLeft&quot;);c.addShortcut(&quot;alt+shift+j&quot;,c.getLang(&quot;justifyfull_desc&quot;),&quot;JustifyFull&quot;);c.addShortcut(&quot;alt+shift+q&quot;,c.getLang(&quot;blockquote_desc&quot;),&quot;mceBlockQuote&quot;);c.addShortcut(&quot;alt+shift+u&quot;,c.getLang(&quot;bullist_desc&quot;),&quot;InsertUnorderedList&quot;);c.addShortcut(&quot;alt+shift+o&quot;,c.getLang(&quot;numlist_desc&quot;),&quot;InsertOrderedList&quot;);c.addShortcut(&quot;alt+shift+d&quot;,c.getLang(&quot;striketrough_desc&quot;),&quot;Strikethrough&quot;);c.addShortcut(&quot;alt+shift+n&quot;,c.getLang(&quot;spellchecker.desc&quot;),&quot;mce
 SpellCheck&quot;);c.addShortcut(&quot;alt+shift+a&quot;,c.getLang(&quot;link_desc&quot;),&quot;mceLink&quot;);c.addShortcut(&quot;alt+shift+s&quot;,c.getLang(&quot;unlink_desc&quot;),&quot;unlink&quot;);c.addShortcut(&quot;alt+shift+m&quot;,c.getLang(&quot;image_desc&quot;),&quot;mceImage&quot;);c.addShortcut(&quot;alt+shift+g&quot;,c.getLang(&quot;fullscreen.desc&quot;),&quot;mceFullScreen&quot;);c.addShortcut(&quot;alt+shift+z&quot;,c.getLang(&quot;wp_adv_desc&quot;),&quot;WP_Adv&quot;);c.addShortcut(&quot;alt+shift+h&quot;,c.getLang(&quot;help_desc&quot;),&quot;WP_Help&quot;);c.addShortcut(&quot;alt+shift+t&quot;,c.getLang(&quot;wp_more_desc&quot;),&quot;WP_More&quot;);c.addShortcut(&quot;alt+shift+p&quot;,c.getLang(&quot;wp_page_desc&quot;),&quot;WP_Page&quot;);c.addShortcut(&quot;ctrl+s&quot;,c.getLang(&quot;save_desc&quot;),function(){if(&quot;function&quot;==typeof autosave){autosave()}});if(tinymce.isWebKit){c.addShortcut(&quot;alt+shift+b&quot;,c.getLang(&quot;bold_
 desc&quot;),&quot;Bold&quot;);c.addShortcut(&quot;alt+shift+i&quot;,c.getLang(&quot;italic_desc&quot;),&quot;Italic&quot;)}c.onInit.add(function(i){tinymce.dom.Event.add(i.getWin(),&quot;scroll&quot;,function(j){i.plugins.wordpress._hideButtons()});tinymce.dom.Event.add(i.getBody(),&quot;dragstart&quot;,function(j){i.plugins.wordpress._hideButtons()})});c.onBeforeExecCommand.add(function(i,k,j,l){i.plugins.wordpress._hideButtons()});c.onSaveContent.add(function(i,j){i.plugins.wordpress._hideButtons()});c.onMouseDown.add(function(i,j){if(j.target.nodeName!=&quot;IMG&quot;){i.plugins.wordpress._hideButtons()}})},getInfo:function(){return{longname:&quot;WordPress Plugin&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;3.0&quot;}},_setEmbed:function(b){return b.replace(/\[embed\]([\s\S]+?)\[\/embed\][\s\u00a0]*/g,function(d,c){return'&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;
 '+tinymce.baseURL+'/plugins/wordpress/img/trans.gif&quot; class=&quot;wp-oembed mceItemNoResize&quot; alt=&quot;'+c+'&quot; title=&quot;'+c+'&quot; /&gt;'})},_getEmbed:function(b){return b.replace(/&lt;img[^&gt;]+&gt;/g,function(c){if(c.indexOf('class=&quot;wp-oembed')!=-1){var d=c.match(/alt=&quot;([^\&quot;]+)&quot;/);if(d[1]){c=&quot;[embed]&quot;+d[1]+&quot;[/embed]&quot;}}return c})},_showButtons:function(f,d){var g=tinyMCE.activeEditor,i,h,b,j=tinymce.DOM,e,c;b=g.dom.getViewPort(g.getWin());i=j.getPos(g.getContentAreaContainer());h=g.dom.getPos(f);e=Math.max(h.x-b.x,0)+i.x;c=Math.max(h.y-b.y,0)+i.y;j.setStyles(d,{top:c+5+&quot;px&quot;,left:e+5+&quot;px&quot;,display:&quot;block&quot;});if(this.mceTout){clearTimeout(this.mceTout)}this.mceTout=setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){if(!this.mceTout){return}if(document.getElementById(&quot;wp_editbtns&quot;)){tinymce.DOM.hide(&quot;wp_editbtns&quot;)}if(document.getElemen
 tById(&quot;wp_gallerybtns&quot;)){tinymce.DOM.hide(&quot;wp_gallerybtns&quot;)}clearTimeout(this.mceTout);this.mceTout=0},_resizeIframe:function(c,e,b){var d=c.getContentAreaContainer().firstChild;a.setStyle(d,&quot;height&quot;,d.clientHeight+b);c.theme.deltaHeight+=b},_handleMoreBreak:function(c,d){var e,b;e='&lt;img src=&quot;'+d+'/img/trans.gif&quot; alt=&quot;$1&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';c.onInit.add(function(){c.dom.loadCSS(d+&quot;/css/content.css&quot;)});c.onPostRender.add(function(){if(c.theme.onResolveName){c.theme.onResolveName.add(function(f,g){if(g.node.nodeName==&quot;IMG&quot;){if(c.dom.hasClass(g.node,&quot;mceWPmore&quot;)){g.name=&quot;wpmore&quot;}if(c.dom.hasClass(g.node,&quot;mceWPnextpage&
 quot;)){g.name=&quot;wppage&quot;}}})}});c.onBeforeSetContent.add(function(f,g){if(g.content){g.content=g.content.replace(/&lt;!--more(.*?)--&gt;/g,e);g.content=g.content.replace(/&lt;!--nextpage--&gt;/g,b)}});c.onPostProcess.add(function(f,g){if(g.get){g.content=g.content.replace(/&lt;img[^&gt;]+&gt;/g,function(i){if(i.indexOf('class=&quot;mceWPmore')!==-1){var h,j=(h=i.match(/alt=&quot;(.*?)&quot;/))?h[1]:&quot;&quot;;i=&quot;&lt;!--more&quot;+j+&quot;--&gt;&quot;}if(i.indexOf('class=&quot;mceWPnextpage')!==-1){i=&quot;&lt;!--nextpage--&gt;&quot;}return i})}});c.onNodeChange.add(function(g,f,h){f.setActive(&quot;wp_page&quot;,h.nodeName===&quot;IMG&quot;&amp;&amp;g.dom.hasClass(h,&quot;mceWPnextpage&quot;));f.setActive(&quot;wp_more&quot;,h.nodeName===&quot;IMG&quot;&amp;&amp;g.dom.hasClass(h,&quot;mceWPmore&quot;))})}});tinymce.PluginManager.add(&quot;wordpress&quot;,tinymce.plugins.WordPress)})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(){var a=tinymce.DOM;tinymce.create(&quot;tinymce.plugins.WordPress&quot;,{mceTout:0,init:function(c,d){var e=this,h=c.getParam(&quot;wordpress_adv_toolbar&quot;,&quot;toolbar2&quot;),g=0,f,b;f='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';if(getUserSetting(&quot;hidetb&quot;,&quot;0&quot;)==&quot;1&quot;){c.settings.wordpress_adv_hidden=0}c.onPostRender.add(function(){var i=c.controlManager.get(h);if(c.getParam(&quot;wordpress_adv_hidden&quot;,1)&amp;&amp;i){a.hide(i.id);e._resizeIframe(c,h,28)}});c.addCommand(&quot;WP_More&quot;,function(){c.execCommand(&quot;mceInsertContent&quot;,0,f)});c.addCommand(&quot;WP_Page&quot;,function(){c.execCommand(&quot;mceInsertContent&quo
 t;,0,b)});c.addCommand(&quot;WP_Help&quot;,function(){c.windowManager.open({url:tinymce.baseURL+&quot;/wp-mce-help.php&quot;,width:450,height:420,inline:1})});c.addCommand(&quot;WP_Adv&quot;,function(){var i=c.controlManager,j=i.get(h).id;if(&quot;undefined&quot;==j){return}if(a.isHidden(j)){i.setActive(&quot;wp_adv&quot;,1);a.show(j);e._resizeIframe(c,h,-28);c.settings.wordpress_adv_hidden=0;setUserSetting(&quot;hidetb&quot;,&quot;1&quot;)}else{i.setActive(&quot;wp_adv&quot;,0);a.hide(j);e._resizeIframe(c,h,28);c.settings.wordpress_adv_hidden=1;setUserSetting(&quot;hidetb&quot;,&quot;0&quot;)}});c.addButton(&quot;wp_more&quot;,{title:&quot;wordpress.wp_more_desc&quot;,cmd:&quot;WP_More&quot;});c.addButton(&quot;wp_page&quot;,{title:&quot;wordpress.wp_page_desc&quot;,image:d+&quot;/img/page.gif&quot;,cmd:&quot;WP_Page&quot;});c.addButton(&quot;wp_help&quot;,{title:&quot;wordpress.wp_help_desc&quot;,cmd:&quot;WP_Help&quot;});c.addButton(&quot;wp_adv&quot;,{title:&quot;wordpre
 ss.wp_adv_desc&quot;,cmd:&quot;WP_Adv&quot;});c.addButton(&quot;add_media&quot;,{title:&quot;wordpress.add_media&quot;,image:d+&quot;/img/media.gif&quot;,onclick:function(){tb_show(&quot;&quot;,tinymce.DOM.get(&quot;add_media&quot;).href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)}});c.addButton(&quot;add_image&quot;,{title:&quot;wordpress.add_image&quot;,image:d+&quot;/img/image.gif&quot;,onclick:function(){tb_show(&quot;&quot;,tinymce.DOM.get(&quot;add_image&quot;).href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)}});c.addButton(&quot;add_video&quot;,{title:&quot;wordpress.add_video&quot;,image:d+&quot;/img/video.gif&quot;,onclick:function(){tb_show(&quot;&quot;,tinymce.DOM.get(&quot;add_video&quot;).href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&
 quot;,&quot;999999&quot;)}});c.addButton(&quot;add_audio&quot;,{title:&quot;wordpress.add_audio&quot;,image:d+&quot;/img/audio.gif&quot;,onclick:function(){tb_show(&quot;&quot;,tinymce.DOM.get(&quot;add_audio&quot;).href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)}});c.onBeforeExecCommand.add(function(p,m,s,l,j){var v=tinymce.DOM,k,i,r,u,t,q;if(&quot;mceFullScreen&quot;==m){if(&quot;mce_fullscreen&quot;!=p.id&amp;&amp;v.get(&quot;add_audio&quot;)&amp;&amp;v.get(&quot;add_video&quot;)&amp;&amp;v.get(&quot;add_image&quot;)&amp;&amp;v.get(&quot;add_media&quot;)){p.settings.theme_advanced_buttons1+=&quot;,|,add_image,add_video,add_audio,add_media&quot;}}if(&quot;JustifyLeft&quot;==m||&quot;JustifyRight&quot;==m||&quot;JustifyCenter&quot;==m){k=p.selection.getNode();if(k.nodeName==&quot;IMG&quot;){q=m.substr(7).toLowerCase();t=&quot;align&quot;+q;i=p.dom.getParent(k,&quot;dl.wp-caption&quot;);r=p
 .dom.getParent(k,&quot;div.mceTemp&quot;);if(i&amp;&amp;r){u=p.dom.hasClass(i,t)?&quot;alignnone&quot;:t;i.className=i.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);p.dom.addClass(i,u);if(u==&quot;aligncenter&quot;){p.dom.addClass(r,&quot;mceIEcenter&quot;)}else{p.dom.removeClass(r,&quot;mceIEcenter&quot;)}j.terminate=true;p.execCommand(&quot;mceRepaint&quot;)}else{if(p.dom.hasClass(k,t)){p.dom.addClass(k,&quot;alignnone&quot;)}else{p.dom.removeClass(k,&quot;alignnone&quot;)}}}}});c.onInit.add(function(i){i.onNodeChange.add(function(k,j,m){var l;if(m.nodeName==&quot;IMG&quot;){l=k.dom.getParent(m,&quot;dl.wp-caption&quot;)}else{if(m.nodeName==&quot;DIV&quot;&amp;&amp;k.dom.hasClass(m,&quot;mceTemp&quot;)){l=m.firstChild;if(!k.dom.hasClass(l,&quot;wp-caption&quot;)){l=false}}}if(l){if(k.dom.hasClass(l,&quot;alignleft&quot;)){j.setActive(&quot;justifyleft&quot;,1)}else{if(k.dom.hasClass(l,&quot;alignright&quot;)){j.setActive(&quot;justifyright&quot;,1)}else{if(k.dom.
 hasClass(l,&quot;aligncenter&quot;)){j.setActive(&quot;justifycenter&quot;,1)}}}}});if(i.id!=&quot;wp_mce_fullscreen&quot;){i.dom.addClass(i.getBody(),&quot;wp-editor&quot;)}i.onBeforeSetContent.add(function(j,k){if(k.content){k.content=k.content.replace(/&lt;p&gt;\s*&lt;(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre|address)( [^&gt;]*)?&gt;/gi,&quot;&lt;$1$2&gt;&quot;);k.content=k.content.replace(/&lt;\/(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre|address)&gt;\s*&lt;\/p&gt;/gi,&quot;&lt;/$1&gt;&quot;)}})});if(&quot;undefined&quot;!=typeof(jQuery)){c.onKeyUp.add(function(j,l){var i=l.keyCode||l.charCode;if(i==g){return}if(13==i||8==g||46==g){jQuery(document).triggerHandler(&quot;wpcountwords&quot;,[j.getContent({format:&quot;raw&quot;})])}g=i})}c.onSaveContent.addToTop(function(i,j){j.content=j.content.replace(/&lt;p&gt;(&lt;br ?\/?&gt;|\u00a0|\uFEFF)?&lt;\/p&gt;/g,&quot;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&quot;)});c.onSaveContent.add(function(i,j){if(typeof(switchEd
 itors)==&quot;object&quot;){if(i.isHidden()){j.content=j.element.value}else{j.content=switchEditors.pre_wpautop(j.content)}}});e._handleMoreBreak(c,d);c.addShortcut(&quot;alt+shift+c&quot;,c.getLang(&quot;justifycenter_desc&quot;),&quot;JustifyCenter&quot;);c.addShortcut(&quot;alt+shift+r&quot;,c.getLang(&quot;justifyright_desc&quot;),&quot;JustifyRight&quot;);c.addShortcut(&quot;alt+shift+l&quot;,c.getLang(&quot;justifyleft_desc&quot;),&quot;JustifyLeft&quot;);c.addShortcut(&quot;alt+shift+j&quot;,c.getLang(&quot;justifyfull_desc&quot;),&quot;JustifyFull&quot;);c.addShortcut(&quot;alt+shift+q&quot;,c.getLang(&quot;blockquote_desc&quot;),&quot;mceBlockQuote&quot;);c.addShortcut(&quot;alt+shift+u&quot;,c.getLang(&quot;bullist_desc&quot;),&quot;InsertUnorderedList&quot;);c.addShortcut(&quot;alt+shift+o&quot;,c.getLang(&quot;numlist_desc&quot;),&quot;InsertOrderedList&quot;);c.addShortcut(&quot;alt+shift+d&quot;,c.getLang(&quot;striketrough_desc&quot;),&quot;Strikethrough&quot;
 );c.addShortcut(&quot;alt+shift+n&quot;,c.getLang(&quot;spellchecker.desc&quot;),&quot;mceSpellCheck&quot;);c.addShortcut(&quot;alt+shift+a&quot;,c.getLang(&quot;link_desc&quot;),&quot;mceLink&quot;);c.addShortcut(&quot;alt+shift+s&quot;,c.getLang(&quot;unlink_desc&quot;),&quot;unlink&quot;);c.addShortcut(&quot;alt+shift+m&quot;,c.getLang(&quot;image_desc&quot;),&quot;mceImage&quot;);c.addShortcut(&quot;alt+shift+g&quot;,c.getLang(&quot;fullscreen.desc&quot;),&quot;mceFullScreen&quot;);c.addShortcut(&quot;alt+shift+z&quot;,c.getLang(&quot;wp_adv_desc&quot;),&quot;WP_Adv&quot;);c.addShortcut(&quot;alt+shift+h&quot;,c.getLang(&quot;help_desc&quot;),&quot;WP_Help&quot;);c.addShortcut(&quot;alt+shift+t&quot;,c.getLang(&quot;wp_more_desc&quot;),&quot;WP_More&quot;);c.addShortcut(&quot;alt+shift+p&quot;,c.getLang(&quot;wp_page_desc&quot;),&quot;WP_Page&quot;);c.addShortcut(&quot;ctrl+s&quot;,c.getLang(&quot;save_desc&quot;),function(){if(&quot;function&quot;==typeof autosave){auto
 save()}});if(tinymce.isWebKit){c.addShortcut(&quot;alt+shift+b&quot;,c.getLang(&quot;bold_desc&quot;),&quot;Bold&quot;);c.addShortcut(&quot;alt+shift+i&quot;,c.getLang(&quot;italic_desc&quot;),&quot;Italic&quot;)}c.onInit.add(function(i){tinymce.dom.Event.add(i.getWin(),&quot;scroll&quot;,function(j){i.plugins.wordpress._hideButtons()});tinymce.dom.Event.add(i.getBody(),&quot;dragstart&quot;,function(j){i.plugins.wordpress._hideButtons()})});c.onBeforeExecCommand.add(function(i,k,j,l){i.plugins.wordpress._hideButtons()});c.onSaveContent.add(function(i,j){i.plugins.wordpress._hideButtons()});c.onMouseDown.add(function(i,j){if(j.target.nodeName!=&quot;IMG&quot;){i.plugins.wordpress._hideButtons()}})},getInfo:function(){return{longname:&quot;WordPress Plugin&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;3.0&quot;}},_setEmbed:function(b){return b.replace(/\[embed\]([\s\S]+?)\[\/embed\][\s\u00a
 0]*/g,function(d,c){return'&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;'+tinymce.baseURL+'/plugins/wordpress/img/trans.gif&quot; class=&quot;wp-oembed mceItemNoResize&quot; alt=&quot;'+c+'&quot; title=&quot;'+c+'&quot; /&gt;'})},_getEmbed:function(b){return b.replace(/&lt;img[^&gt;]+&gt;/g,function(c){if(c.indexOf('class=&quot;wp-oembed')!=-1){var d=c.match(/alt=&quot;([^\&quot;]+)&quot;/);if(d[1]){c=&quot;[embed]&quot;+d[1]+&quot;[/embed]&quot;}}return c})},_showButtons:function(f,d){var g=tinyMCE.activeEditor,i,h,b,j=tinymce.DOM,e,c;b=g.dom.getViewPort(g.getWin());i=j.getPos(g.getContentAreaContainer());h=g.dom.getPos(f);e=Math.max(h.x-b.x,0)+i.x;c=Math.max(h.y-b.y,0)+i.y;j.setStyles(d,{top:c+5+&quot;px&quot;,left:e+5+&quot;px&quot;,display:&quot;block&quot;});if(this.mceTout){clearTimeout(this.mceTout)}this.mceTout=setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){if(!this.mceTout){return}if(document.getElementById
 (&quot;wp_editbtns&quot;)){tinymce.DOM.hide(&quot;wp_editbtns&quot;)}if(document.getElementById(&quot;wp_gallerybtns&quot;)){tinymce.DOM.hide(&quot;wp_gallerybtns&quot;)}clearTimeout(this.mceTout);this.mceTout=0},_resizeIframe:function(c,e,b){var d=c.getContentAreaContainer().firstChild;a.setStyle(d,&quot;height&quot;,d.clientHeight+b);c.theme.deltaHeight+=b},_handleMoreBreak:function(c,d){var e,b;e='&lt;img src=&quot;'+d+'/img/trans.gif&quot; alt=&quot;$1&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';c.onInit.add(function(){c.dom.loadCSS(d+&quot;/css/content.css&quot;)});c.onPostRender.add(function(){if(c.theme.onResolveName){c.theme.onResolveName.add(function(f,g){if(g.node.nodeName==&quot;IMG&quot;){if(c.dom.hasClass(g.node,&quot
 ;mceWPmore&quot;)){g.name=&quot;wpmore&quot;}if(c.dom.hasClass(g.node,&quot;mceWPnextpage&quot;)){g.name=&quot;wppage&quot;}}})}});c.onBeforeSetContent.add(function(f,g){if(g.content){g.content=g.content.replace(/&lt;!--more(.*?)--&gt;/g,e);g.content=g.content.replace(/&lt;!--nextpage--&gt;/g,b)}});c.onPostProcess.add(function(f,g){if(g.get){g.content=g.content.replace(/&lt;img[^&gt;]+&gt;/g,function(i){if(i.indexOf('class=&quot;mceWPmore')!==-1){var h,j=(h=i.match(/alt=&quot;(.*?)&quot;/))?h[1]:&quot;&quot;;i=&quot;&lt;!--more&quot;+j+&quot;--&gt;&quot;}if(i.indexOf('class=&quot;mceWPnextpage')!==-1){i=&quot;&lt;!--nextpage--&gt;&quot;}return i})}});c.onNodeChange.add(function(g,f,h){f.setActive(&quot;wp_page&quot;,h.nodeName===&quot;IMG&quot;&amp;&amp;g.dom.hasClass(h,&quot;mceWPnextpage&quot;));f.setActive(&quot;wp_more&quot;,h.nodeName===&quot;IMG&quot;&amp;&amp;g.dom.hasClass(h,&quot;mceWPmore&quot;))})}});tinymce.PluginManager.add(&quot;wordpress&quot;,tinymce.plugins.
 WordPress)})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpfullscreencsswpfullscreencss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css (18141 => 18142)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css        2011-06-04 22:05:29 UTC (rev 18141)
+++ trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css        2011-06-05 00:06:28 UTC (rev 18142)
</span><span class="lines">@@ -6,6 +6,6 @@
</span><span class="cx">         background: transparent;
</span><span class="cx">         width: auto !important;
</span><span class="cx">         max-width: none !important;
</span><del>-        margin: 0 !important;
-        padding: 0 !important;
</del><ins>+        margin: 0;
+        padding: 0;
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpfullscreeneditor_plugindevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js (18141 => 18142)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js        2011-06-04 22:05:29 UTC (rev 18141)
+++ trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js        2011-06-05 00:06:28 UTC (rev 18142)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx">         tinymce.create('tinymce.plugins.wpFullscreenPlugin', {
</span><span class="cx"> 
</span><span class="cx">                 init : function(ed, url) {
</span><del>-                        var t = this, oldHeight = 0, s = {}, DOM = tinymce.DOM;
</del><ins>+                        var t = this, oldHeight = 0, s = {}, DOM = tinymce.DOM, resized = false;
</ins><span class="cx"> 
</span><span class="cx">                         // Register commands
</span><span class="cx">                         ed.addCommand('wpFullScreenClose', function() {
</span><span class="lines">@@ -80,13 +80,14 @@
</span><span class="cx">                                                 });
</span><span class="cx">                                         }, 1000);
</span><span class="cx"> 
</span><ins>+                                        edd.dom.addClass(edd.getBody(), 'wp-fullscreen-editor');
</ins><span class="cx">                                         edd.focus();
</span><span class="cx">                                 });
</span><span class="cx"> 
</span><span class="cx">                                 fsed.render();
</span><span class="cx"> 
</span><del>-                                fsed.dom.bind( fsed.getWin(), 'mousemove', function(e){
-                                        if ( !fullscreen.settings.toolbar_shown )
</del><ins>+                                fsed.dom.bind( fsed.dom.doc, 'mousemove', function(e){
+                                        if ( 'undefined' != fullscreen )
</ins><span class="cx">                                                 fullscreen.bounder( 'showToolbar', 'hideToolbar', 2000 );
</span><span class="cx">                                 });
</span><span class="cx">                         });
</span><span class="lines">@@ -109,22 +110,28 @@
</span><span class="cx">                          * This method gets executed each time the editor needs to resize.
</span><span class="cx">                          */
</span><span class="cx">                         function resize() {
</span><del>-                                var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight, myHeight;
</del><ins>+                                if ( resized )
+                                        return;
</ins><span class="cx"> 
</span><ins>+                                var d = ed.getDoc(), DOM = tinymce.DOM, resizeHeight, myHeight;
+
</ins><span class="cx">                                 // Get height differently depending on the browser used
</span><span class="cx">                                 if ( tinymce.isIE )
</span><del>-                                        myHeight = b.scrollHeight;
</del><ins>+                                        myHeight = d.body.scrollHeight;
</ins><span class="cx">                                 else if ( tinymce.isWebKit )
</span><del>-                                        myHeight = b.offsetHeight;
</del><ins>+                                        myHeight = d.height;
</ins><span class="cx">                                 else
</span><del>-                                        myHeight = de.offsetHeight;
</del><ins>+                                        myHeight = d.documentElement.offsetHeight;
</ins><span class="cx"> 
</span><del>-                                // Don't make it smaller than the minimum height
</del><ins>+                                // Don't make it smaller than 300px
</ins><span class="cx">                                 resizeHeight = (myHeight &gt; 300) ? myHeight : 300;
</span><span class="cx"> 
</span><span class="cx">                                 // Resize content element
</span><span class="cx">                                 if ( oldHeight != resizeHeight ) {
</span><span class="cx">                                         oldHeight = resizeHeight;
</span><ins>+                                        resized = true;
+                                        setTimeout(function(){ resized = false; }, 100);
+
</ins><span class="cx">                                         DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px');
</span><span class="cx">                                 }
</span><span class="cx">                         };
</span><span class="lines">@@ -142,8 +149,6 @@
</span><span class="cx"> 
</span><span class="cx">                         if (ed.getParam('autoresize_on_init', true)) {
</span><span class="cx">                                 ed.onLoadContent.add(function(ed, l) {
</span><del>-                                //        resize(); // runs before onInit, useless?
-
</del><span class="cx">                                         // Because the content area resizes when its content CSS loads,
</span><span class="cx">                                         // and we can't easily add a listener to its onload event,
</span><span class="cx">                                         // we'll just trigger a resize after a short loading period
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpfullscreeneditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js (18141 => 18142)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js        2011-06-04 22:05:29 UTC (rev 18141)
+++ trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.js        2011-06-05 00:06:28 UTC (rev 18142)
</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.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)})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(){tinymce.create(&quot;tinymce.plugins.wpFullscreenPlugin&quot;,{init:function(b,d){var e=this,h=0,f={},g=tinymce.DOM,a=false;b.addCommand(&quot;wpFullScreenClose&quot;,function(){if(b.getParam(&quot;wp_fullscreen_is_enabled&quot;)){g.win.setTimeout(function(){tinyMCE.remove(b);g.remove(&quot;wp_mce_fullscreen_parent&quot;);tinyMCE.settings=tinyMCE.oldSettings},10)}});b.addCommand(&quot;wpFullScreenSave&quot;,function(){var i=tinyMCE.get(&quot;wp_mce_fullscreen&quot;),j;i.focus();j=tinyMCE.get(i.getParam(&quot;wp_fullscreen_editor_id&quot;));j.setContent(i.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})});b.addCommand(&quot;wpFullScreenInit&quot;,function(){var k=b.getDoc(),i=k.body,j;if(b.id==&quot;wp_mce_fullscreen&quot;){return}tinyMCE.oldSettings=tinyMCE.settings;tinymce.each(b.settings,function(l,m){f[m]=l});f.id=&quot;wp_mce_fullscreen&quot;;f.wp_fullscreen_is_enabled=true;f.wp_fullscreen_editor_id=b.id;f.theme_advanced_resizing=fal
 se;f.theme_advanced_statusbar_location=&quot;none&quot;;f.content_css=f.content_css+&quot;,&quot;+f.wp_fullscreen_content_css;f.height=tinymce.isIE?i.scrollHeight:i.offsetHeight;tinymce.each(b.getParam(&quot;wp_fullscreen_settings&quot;),function(m,l){f[l]=m});j=new tinymce.Editor(&quot;wp_mce_fullscreen&quot;,f);j.onInit.add(function(l){var n=tinymce.DOM,m=n.select(&quot;a.mceButton&quot;,n.get(&quot;wp-fullscreen-buttons&quot;));if(!b.isHidden()){l.setContent(b.getContent())}else{l.setContent(switchEditors.wpautop(l.getElement().value))}setTimeout(function(){l.onNodeChange.add(function(p,o,q){tinymce.each(m,function(t){var s,r;if(s=n.get(&quot;wp_mce_fullscreen_&quot;+t.id.substr(6))){r=s.className;if(r){t.className=r}}})})},1000);l.dom.addClass(l.getBody(),&quot;wp-fullscreen-editor&quot;);l.focus()});j.render();j.dom.bind(j.dom.doc,&quot;mousemove&quot;,function(l){if(&quot;undefined&quot;!=fullscreen){fullscreen.bounder(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,20
 00)}})});if(&quot;undefined&quot;!=fullscreen){b.addButton(&quot;fullscreen&quot;,{title:&quot;fullscreen.desc&quot;,onclick:function(){fullscreen.on()}})}if(b.getParam(&quot;fullscreen_is_enabled&quot;)||!b.getParam(&quot;wp_fullscreen_is_enabled&quot;)){return}function c(){if(a){return}var k=b.getDoc(),j=tinymce.DOM,l,i;if(tinymce.isIE){i=k.body.scrollHeight}else{if(tinymce.isWebKit){i=k.height}else{i=k.documentElement.offsetHeight}}l=(i&gt;300)?i:300;if(h!=l){h=l;a=true;setTimeout(function(){a=false},100);j.setStyle(j.get(b.id+&quot;_ifr&quot;),&quot;height&quot;,l+&quot;px&quot;)}}b.onInit.add(function(j,i){j.onChange.add(c);j.onSetContent.add(c);j.onPaste.add(c);j.onKeyUp.add(c);j.onPostRender.add(c);j.getBody().style.overflowY=&quot;hidden&quot;});if(b.getParam(&quot;autoresize_on_init&quot;,true)){b.onLoadContent.add(function(j,i){setTimeout(function(){c()},1200)})}b.addCommand(&quot;wpAutoResize&quot;,c)},getInfo:function(){return{longname:&quot;WP Fullscreen&quot;,a
 uthor:&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="trunkwpincludesjstinymcethemesadvancedskinswp_themecontentcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css (18141 => 18142)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css        2011-06-04 22:05:29 UTC (rev 18141)
+++ trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css        2011-06-05 00:06:28 UTC (rev 18142)
</span><span class="lines">@@ -1,7 +1,12 @@
</span><del>-body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;}
-body {background:#FFF;}
</del><ins>+body {
+        font: 13px/19px Georgia, &quot;Times New Roman&quot;, &quot;Bitstream Charter&quot;, Times, serif;
+        margin: 0.6em;
+        background: #fff;
+        color: #000;
+}
</ins><span class="cx"> body.mceForceColors {background:#FFF; color:#000;}
</span><span class="cx"> body.mceBrowserDefaults {background:transparent; color:inherit; font-size:inherit; font-family:inherit;}
</span><ins>+td {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;}
</ins><span class="cx"> h1 {font-size: 2em}
</span><span class="cx"> h2 {font-size: 1.5em}
</span><span class="cx"> h3 {font-size: 1.17em}
</span><span class="lines">@@ -63,6 +68,10 @@
</span><span class="cx">         border-radius: 3px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.mceIEcenter {
+        text-align: center;
+}
+
</ins><span class="cx"> .wp-caption img {
</span><span class="cx">         margin: 0;
</span><span class="cx">         padding: 0;
</span><span class="lines">@@ -76,13 +85,8 @@
</span><span class="cx">         margin: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-body.mceContentBody {
-        font: 13px/19px Georgia, &quot;Times New Roman&quot;, &quot;Bitstream Charter&quot;, Times, serif;
-        margin: 0.6em;
-}
-
</del><span class="cx"> pre {
</span><del>-        font: 12px/18px Consolas, Monaco, &quot;Courier New&quot;, Courier, monospace;
</del><ins>+        font: 12px/18px Consolas, Monaco, monospace;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> td {
</span><span class="lines">@@ -91,6 +95,3 @@
</span><span class="cx">         margin: 8px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.mceIEcenter {
-        text-align: center;
-}
</del></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="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (18141 => 18142)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2011-06-04 22:05:29 UTC (rev 18141)
+++ trunk/wp-includes/version.php        2011-06-05 00:06:28 UTC (rev 18142)
</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-20110603';
</del><ins>+$tinymce_version = '342-20110604';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the cache manifest version
</span></span></pre>
</div>
</div>

</body>
</html>