<!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>[18710] trunk: Add TinyMCE command to handle opening of the upload/insert popup, fix the shortcut &quot;Alt+Shift+M&quot;, fix the &quot;image&quot; button in DFW, fixes #17992, fixes #18697, see $17144</title>
</head>
<body>

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

<h3>Log Message</h3>
<pre>Add TinyMCE command to handle opening of the upload/insert popup, fix the shortcut &quot;Alt+Shift+M&quot;, fix the &quot;image&quot; button in DFW, fixes <a href="http://core.trac.wordpress.org/ticket/17992">#17992</a>, fixes <a href="http://core.trac.wordpress.org/ticket/18697">#18697</a>, see $17144</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincssmediacss">trunk/wp-admin/css/media.css</a></li>
<li><a href="#trunkwpadmincssmediadevcss">trunk/wp-admin/css/media.dev.css</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="#trunkwpincludesclasswpeditorphp">trunk/wp-includes/class-wp-editor.php</a></li>
<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="#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>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincssmediacss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/media.css (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/media.css        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-admin/css/media.css        2011-09-19 00:47:23 UTC (rev 18710)
</span><span class="lines">@@ -1 +1 @@
</span><del>-div#media-upload-header{margin:0;padding:0 5px;font-weight:bold;position:relative;border-bottom-width:1px;border-bottom-style:solid;}body#media-upload ul#sidemenu{font-weight:normal;margin:0 5px;left:0;bottom:-1px;float:none;overflow:hidden;}div#media-upload-error{margin:1em;font-weight:bold;}form{margin:1em;}#search-filter{text-align:right;}th{position:relative;}.media-upload-form label.form-help,td.help{font-family:sans-serif;font-style:italic;font-weight:normal;}.media-upload-form p.help{margin:0;padding:0;}.media-upload-form fieldset{width:100%;border:none;text-align:justify;margin:0 0 1em 0;padding:0;}.image-align-none-label{background:url(../images/align-none.png) no-repeat center left;}.image-align-left-label{background:url(../images/align-left.png) no-repeat center left;}.image-align-center-label{background:url(../images/align-center.png) no-repeat center left;}.image-align-right-label{background:url(../images/align-right.png) no-repeat center left;}tr.im
 age-size td{width:460px;}tr.image-size div.image-size-item{float:left;width:25%;margin:0;}#library-form .progress,#gallery-form .progress,.insert-gallery,.describe.startopen,.describe.startclosed{display:none;}.media-item .thumbnail{max-width:128px;max-height:128px;}thead.media-item-info tr{background-color:transparent;}thead.media-item-info th,thead.media-item-info td{border:none;margin:0;}.form-table thead.media-item-info{border:8px solid #fff;}abbr.required{text-decoration:none;border:none;}.describe label{display:inline;}.describe td{vertical-align:middle;padding:0 5px 8px 0;}.describe td.error{padding:2px 8px;}.describe td.A1{width:132px;}.describe input[type=&quot;text&quot;],.describe textarea{width:460px;border-width:1px;border-style:solid;}.hidden{height:0;width:0;overflow:hidden;border:none;}#media-upload p.ml-submit{padding:1em 0;}#media-upload p.help,#media-upload label.help{font-family:sans-serif;font-style:italic;font-weight:normal;}#media-upload #media-items{b
 order-bottom-width:1px;border-bottom-style:solid;width:623px;}#media-upload #media-items:empty{border:0 none;}#media-upload .media-item{border-style:solid solid none;border-width:1px 1px 0;min-height:36px;width:100%;}#media-upload .ui-sortable .media-item{cursor:move;}.filename{line-height:36px;padding:0 10px;overflow:hidden;}#media-upload .describe{width:100%;clear:both;cursor:default;}#media-upload .describe th.label{padding-top:.2em;text-align:left;min-width:120px;}#media-upload tr.image-size{margin-bottom:1em;height:3em;}#media-upload #filter{width:623px;}#media-upload #filter .subsubsub{margin:8px 0;}#filter .tablenav select{border-style:solid;border-width:1px;padding:2px;vertical-align:top;width:auto;}#media-upload .del-attachment{display:none;margin:5px 0;}.menu_order{float:right;font-size:11px;margin:10px 10px 0;}.menu_order_input{border:1px solid #ddd;font-size:10px;padding:1px;width:23px;}.ui-sortable-helper{background-color:#fff;border:1px solid #aaa;opacity:.6;fi
 lter:alpha(opacity=60);}#media-upload th.order-head{width:20%;text-align:center;}#media-upload th.actions-head{width:25%;text-align:center;}#media-upload a.wp-post-thumbnail{margin:0 20px;}#media-items a.delete{display:block;float:right;}#media-upload .widefat{width:626px;border-style:solid solid none;}.sorthelper{height:37px;width:623px;display:block;}#gallery-settings th.label{width:160px;}#gallery-settings #basic th.label{padding:5px 5px 5px 0;}#gallery-settings .title{clear:both;padding:0 0 3px;font-size:1.6em;border-bottom:1px solid #DADADA;}h3.media-title{font-size:1.6em;}h4.media-sub-title{border-bottom:1px solid #DADADA;font-size:1.3em;margin:12px;padding:0 0 3px;}#gallery-settings .title,h3.media-title,h4.media-sub-title{font-family:Georgia,&quot;Times New Roman&quot;,Times,serif;font-weight:normal;color:#5A5A5A;}#gallery-settings .describe td{vertical-align:middle;height:3em;}#gallery-settings .describe th.label{padding-top:.5em;text-align:left;}#gallery-settings .
 describe{padding:5px;width:615px;clear:both;cursor:default;}#gallery-settings .describe select{width:15em;}#gallery-settings .describe select option,#gallery-settings .describe td{padding:0;}#gallery-settings label,#gallery-settings legend{font-size:13px;color:#464646;margin-right:15px;}#gallery-settings .align .field label{margin:0 1.5em 0 0;}#gallery-settings p.ml-submit{border-top:1px solid #dfdfdf;}#gallery-settings select#columns{width:6em;}#sort-buttons{font-size:.8em;margin:3px 25px -8px 0;text-align:right;max-width:625px;}#sort-buttons a{text-decoration:none;}#sort-buttons #asc,#sort-buttons #showall{padding-left:5px;}#sort-buttons span{margin-right:25px;}
</del><span class="cx">\ No newline at end of file
</span><ins>+div#media-upload-header{margin:0;padding:0 5px;font-weight:bold;position:relative;border-bottom-width:1px;border-bottom-style:solid;}body#media-upload ul#sidemenu{font-weight:normal;margin:0 5px;left:0;bottom:-1px;float:none;overflow:hidden;}div#media-upload-error{margin:1em;font-weight:bold;}form{margin:1em;}#search-filter{text-align:right;}th{position:relative;}.media-upload-form label.form-help,td.help{font-family:sans-serif;font-style:italic;font-weight:normal;}.media-upload-form p.help{margin:0;padding:0;}.media-upload-form fieldset{width:100%;border:none;text-align:justify;margin:0 0 1em 0;padding:0;}.image-align-none-label{background:url(../images/align-none.png) no-repeat center left;}.image-align-left-label{background:url(../images/align-left.png) no-repeat center left;}.image-align-center-label{background:url(../images/align-center.png) no-repeat center left;}.image-align-right-label{background:url(../images/align-right.png) no-repeat center left;}tr.im
 age-size td{width:460px;}tr.image-size div.image-size-item{float:left;width:25%;margin:0;}#library-form .progress,#gallery-form .progress,.insert-gallery,.describe.startopen,.describe.startclosed{display:none;}.media-item .thumbnail{max-width:128px;max-height:128px;}thead.media-item-info tr{background-color:transparent;}thead.media-item-info th,thead.media-item-info td{border:none;margin:0;}.form-table thead.media-item-info{border:8px solid #fff;}abbr.required{text-decoration:none;border:none;}.describe label{display:inline;}.describe td{vertical-align:middle;padding:0 5px 8px 0;}.describe td.error{padding:2px 8px;}.describe td.A1{width:132px;}.describe input[type=&quot;text&quot;],.describe textarea{width:460px;border-width:1px;border-style:solid;}#media-upload p.ml-submit{padding:1em 0;}#media-upload p.help,#media-upload label.help{font-family:sans-serif;font-style:italic;font-weight:normal;}#media-upload #media-items{border-bottom-width:1px;border-bottom-style:solid;width
 :623px;}#media-upload #media-items:empty{border:0 none;}#media-upload .media-item{border-style:solid solid none;border-width:1px 1px 0;min-height:36px;width:100%;}#media-upload .ui-sortable .media-item{cursor:move;}.filename{line-height:36px;padding:0 10px;overflow:hidden;}#media-upload .describe{width:100%;clear:both;cursor:default;}#media-upload .describe th.label{padding-top:.2em;text-align:left;min-width:120px;}#media-upload tr.image-size{margin-bottom:1em;height:3em;}#media-upload #filter{width:623px;}#media-upload #filter .subsubsub{margin:8px 0;}#filter .tablenav select{border-style:solid;border-width:1px;padding:2px;vertical-align:top;width:auto;}#media-upload .del-attachment{display:none;margin:5px 0;}.menu_order{float:right;font-size:11px;margin:10px 10px 0;}.menu_order_input{border:1px solid #ddd;font-size:10px;padding:1px;width:23px;}.ui-sortable-helper{background-color:#fff;border:1px solid #aaa;opacity:.6;filter:alpha(opacity=60);}#media-upload th.order-head{wi
 dth:20%;text-align:center;}#media-upload th.actions-head{width:25%;text-align:center;}#media-upload a.wp-post-thumbnail{margin:0 20px;}#media-items a.delete{display:block;float:right;}#media-upload .widefat{width:626px;border-style:solid solid none;}.sorthelper{height:37px;width:623px;display:block;}#gallery-settings th.label{width:160px;}#gallery-settings #basic th.label{padding:5px 5px 5px 0;}#gallery-settings .title{clear:both;padding:0 0 3px;font-size:1.6em;border-bottom:1px solid #DADADA;}h3.media-title{font-size:1.6em;}h4.media-sub-title{border-bottom:1px solid #DADADA;font-size:1.3em;margin:12px;padding:0 0 3px;}#gallery-settings .title,h3.media-title,h4.media-sub-title{font-family:Georgia,&quot;Times New Roman&quot;,Times,serif;font-weight:normal;color:#5A5A5A;}#gallery-settings .describe td{vertical-align:middle;height:3em;}#gallery-settings .describe th.label{padding-top:.5em;text-align:left;}#gallery-settings .describe{padding:5px;width:615px;clear:both;cursor:def
 ault;}#gallery-settings .describe select{width:15em;}#gallery-settings .describe select option,#gallery-settings .describe td{padding:0;}#gallery-settings label,#gallery-settings legend{font-size:13px;color:#464646;margin-right:15px;}#gallery-settings .align .field label{margin:0 1.5em 0 0;}#gallery-settings p.ml-submit{border-top:1px solid #dfdfdf;}#gallery-settings select#columns{width:6em;}#sort-buttons{font-size:.8em;margin:3px 25px -8px 0;text-align:right;max-width:625px;}#sort-buttons a{text-decoration:none;}#sort-buttons #asc,#sort-buttons #showall{padding-left:5px;}#sort-buttons span{margin-right:25px;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincssmediadevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/media.dev.css (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/media.dev.css        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-admin/css/media.dev.css        2011-09-19 00:47:23 UTC (rev 18710)
</span><span class="lines">@@ -364,23 +364,3 @@
</span><span class="cx">         margin-right: 25px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.drag-drop #drag-drop-area {
-        border: 4px dashed #DDDDDD;
-    height: 300px;
-}
-
-.drag-drop .drag-drop-inside {
-        padding-top: 100px;
-}
-
-.drag-drop .drag-drop-inside p {
-        text-align: center;
-}
-
-.dragdrop-info {
-        display: none;
-}
-
-.drag-drop .dragdrop-info {
-        display: block;
-}
</del></span></pre></div>
<a id="trunkwpadminjswpfullscreendevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.dev.js (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.dev.js        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-admin/js/wp-fullscreen.dev.js        2011-09-19 00:47:23 UTC (rev 18710)
</span><span class="lines">@@ -143,20 +143,15 @@
</span><span class="cx">                 if ( typeof(wp_fullscreen_settings) != 'undefined' )
</span><span class="cx">                         $.extend( s, wp_fullscreen_settings );
</span><span class="cx"> 
</span><del>-                // enable DFW only on the Add/Edit Post screens for now
-                /*
</del><span class="cx">                 s.editor_id = wpActiveEditor || 'content';
</span><span class="cx"> 
</span><del>-                if ( !s.title_id &amp;&amp; $('input#title').length &amp;&amp; s.editor_id == 'content' )
-                        s.title_id = 'title';
</del><ins>+                if ( !s.title_id ) {
+                        if ( $('input#title').length &amp;&amp; s.editor_id == 'content' )
+                                s.title_id = 'title';
+                        else
+                                $('#wp-fullscreen-title').hide();
+                }
</ins><span class="cx"> 
</span><del>-                if ( !s.title_id )
-                        $('#wp-fullscreen-title').hide();
-                */
-
-                s.editor_id = 'content';
-                s.title_id = 'title';
-
</del><span class="cx">                 s.mode = $('#' + s.editor_id).is(':hidden') ? 'tinymce' : 'html';
</span><span class="cx">                 s.qt_canvas = $('#' + s.editor_id).get(0);
</span><span class="cx"> 
</span><span class="lines">@@ -360,6 +355,8 @@
</span><span class="cx"> 
</span><span class="cx">                         s.is_mce_on = true;
</span><span class="cx">                 }
</span><ins>+
+                wpActiveEditor = 'wp_mce_fullscreen';
</ins><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'hide', function() { // This event occurs before the overlay blocks DFW.
</span><span class="lines">@@ -402,6 +399,7 @@
</span><span class="cx"> 
</span><span class="cx">                 s.textarea_obj.value = '';
</span><span class="cx">                 api.oldheight = 0;
</span><ins>+                wpActiveEditor = s.editor_id;
</ins><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'switchMode', function( from, to ) {
</span><span class="lines">@@ -485,6 +483,11 @@
</span><span class="cx">                         tinyMCE.execCommand('mceBlockQuote');
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        api.medialib = function() {
+                if ( s.has_tinymce &amp;&amp; 'tinymce' === s.mode )
+                        tinyMCE.execCommand('WP_Medialib');
+        }
+
</ins><span class="cx">         api.refresh_buttons = function( fade ) {
</span><span class="cx">                 fade = fade || false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjswpfullscreenjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.js (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.js        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-admin/js/wp-fullscreen.js        2011-09-19 00:47:23 UTC (rev 18710)
</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;&quot;,timer:0,toolbar_shown:false};d=b.bounder=function(l,h,g,j){var k,i;g=g||1250;if(j){k=j.pageY||j.clientY||j.offsetY;i=c(document).scrollTop();if(!j.isDefaultPrevented){k=135+k}if(k-i&gt;120){return}}if(block){return}block=true;setTimeout(function(){
 block=false},400);if(a.timer){clearTimeout(a.timer)}else{e.publish(l)}function f(){e.publish(h);a.timer=0}a.timer=setTimeout(f,g)};b.on=function(){if(a.visible){return}if(typeof(wp_fullscreen_settings)!=&quot;undefined&quot;){c.extend(a,wp_fullscreen_settings)}a.editor_id=&quot;content&quot;;a.title_id=&quot;title&quot;;a.mode=c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)?&quot;tinymce&quot;:&quot;html&quot;;a.qt_canvas=c(&quot;#&quot;+a.editor_id).get(0);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(&quo
 t;#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;if(a.title_id){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;h
 idden&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}f=h+f;if(f&lt;200||f&gt;1200){return}g.width(f);setUserSetting(&quot;dfw_width&quot;,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.su
 bscribe(&quot;toolbarHidden&quot;,function(){a.toolbars.removeClass(&quot;fade-1000&quot;);a.toolbar_shown=false});e.subscribe(&quot;show&quot;,function(){var f;if(a.title_id){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=a.qt_canvas.value;if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}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,f)});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(){var
  f;a.visible=true;if(a.has_tinymce&amp;&amp;!a.is_mce_on){f=function(g,h){var k=h.getElement(),i=k.value,j=tinyMCEPreInit.mceInit[a.editor_id];if(j&amp;&amp;j.wpautop&amp;&amp;typeof(switchEditors)!=&quot;undefined&quot;){k.value=switchEditors.wpautop(k.value)}h.onInit.add(function(l){l.hide();l.getElement().value=i;tinymce.onAddEditor.remove(f)})};tinymce.onAddEditor.add(f);tinyMCE.init(tinyMCEPreInit.mceInit[a.editor_id]);a.is_mce_on=true}});e.subscribe(&quot;hide&quot;,function(){var f=c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;);if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;&amp;&amp;!f){switchEditors.go(c(&quot;#&quot;+a.editor_id+&quot;-tmce&quot;).get(0))}else{if(a.mode===&quot;html&quot;&amp;&amp;f){switchEditors.go(c(&quot;#&quot;+a.editor_id+&quot;-html&quot;).get(0))}}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(&qu
 ot;wpFullScreenSave&quot;)}if(a.title_id){set_title_hint(c(&quot;#&quot;+a.title_id))}a.qt_canvas.value=a.textarea_obj.value});e.subscribe(&quot;hiding&quot;,function(){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, #wp-fullscreen-title&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;){if(tinyMCE.get(a.editor_id).getParam(&quot;wpautop&quot;)&amp;&amp;typeof(switchEditors)!=&quot;undefined&quot;){a.textarea_obj.value=switchEditors.wpautop(a.textarea_obj.value)}if(&quot;undefined&quot;==typeof(f)){tinyMC
 E.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;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(&q
 uot;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){wptitlehint(&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}ret
 urn 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(&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,j)})}})},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&qu
 ot;).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;&quot;,timer:0,toolbar_shown:false};d=b.bounder=function(l,h,g,j){var k,i;g=g||1250;if(j){k=j.pageY||j.clientY||j.offsetY;i=c(document).scrollTop();if(!j.isDefaultPrevented){k=135+k}if(k-i&gt;120){return}}if(block){return}block=true;setTimeout(function(){
 block=false},400);if(a.timer){clearTimeout(a.timer)}else{e.publish(l)}function f(){e.publish(h);a.timer=0}a.timer=setTimeout(f,g)};b.on=function(){if(a.visible){return}if(typeof(wp_fullscreen_settings)!=&quot;undefined&quot;){c.extend(a,wp_fullscreen_settings)}a.editor_id=wpActiveEditor||&quot;content&quot;;if(!a.title_id){if(c(&quot;input#title&quot;).length&amp;&amp;a.editor_id==&quot;content&quot;){a.title_id=&quot;title&quot;}else{c(&quot;#wp-fullscreen-title&quot;).hide()}}a.mode=c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)?&quot;tinymce&quot;:&quot;html&quot;;a.qt_canvas=c(&quot;#&quot;+a.editor_id).get(0);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_tinymc
 e){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;if(a.title_id){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}f=h+f;if(f&lt;200||f&gt;1200){return}g.width(f);setUserSetting(&quot;dfw_width&quot;,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-fullscre
 en-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;if(a.title_id){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=a.qt_canvas.value;if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}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,f)});d(&quot;showToolbar&quot;,&quot;hideToo
 lbar&quot;,2000);b.bind_resize();setTimeout(b.resize_textarea,200);scrollTo(0,0);c(&quot;#wpadminbar&quot;).hide()});e.subscribe(&quot;shown&quot;,function(){var f;a.visible=true;if(a.has_tinymce&amp;&amp;!a.is_mce_on){f=function(g,h){var k=h.getElement(),i=k.value,j=tinyMCEPreInit.mceInit[a.editor_id];if(j&amp;&amp;j.wpautop&amp;&amp;typeof(switchEditors)!=&quot;undefined&quot;){k.value=switchEditors.wpautop(k.value)}h.onInit.add(function(l){l.hide();l.getElement().value=i;tinymce.onAddEditor.remove(f)})};tinymce.onAddEditor.add(f);tinyMCE.init(tinyMCEPreInit.mceInit[a.editor_id]);a.is_mce_on=true}wpActiveEditor=&quot;wp_mce_fullscreen&quot;});e.subscribe(&quot;hide&quot;,function(){var f=c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;);if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;&amp;&amp;!f){switchEditors.go(c(&quot;#&quot;+a.editor_id+&quot;-tmce&quot;).get(0))}else{if(a.mode===&quot;html&quot;&amp;&amp;f){switchEditors.go(c(&quot;#&quot;+a.editor_id+&quot;
 -html&quot;).get(0))}}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;)}if(a.title_id){set_title_hint(c(&quot;#&quot;+a.title_id))}a.qt_canvas.value=a.textarea_obj.value});e.subscribe(&quot;hiding&quot;,function(){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, #wp-fullscreen-title&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;wpActiveEditor=a.editor_id});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;tiny
 mce&quot;){if(tinyMCE.get(a.editor_id).getParam(&quot;wpautop&quot;)&amp;&amp;typeof(switchEditors)!=&quot;undefined&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;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.medialib=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Medialib&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;).fa
 deOut(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(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(&quot;fullscreen-make-sticky&quot;);c(document).unbind(&quot;.fullscreen&quot;);clearTimeout(a.timer);a.t
 imer=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,j)})}})},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);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesclasswpeditorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/class-wp-editor.php (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/class-wp-editor.php        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-includes/class-wp-editor.php        2011-09-19 00:47:23 UTC (rev 18710)
</span><span class="lines">@@ -594,10 +594,6 @@
</span><span class="cx">                         &lt;div id=&quot;wp-fullscreen-button-bar&quot;&gt;&lt;div id=&quot;wp-fullscreen-buttons&quot; class=&quot;wp_themeSkin&quot;&gt;
</span><span class="cx">         &lt;?php
</span><span class="cx"> 
</span><del>-                $media_link_type = 'image';
-                if ( is_multisite() &amp;&amp; ( ( ! $mu_media_buttons = get_site_option( 'mu_media_buttons' ) ) || empty( $mu_media_buttons['image'] ) ) )
-                        $media_link_type = 'media';
-
</del><span class="cx">                 $buttons = array(
</span><span class="cx">                         // format: title, onclick, show in both editors
</span><span class="cx">                         'bold' =&gt; array( 'title' =&gt; __('Bold (Ctrl + B)'), 'onclick' =&gt; 'fullscreen.b();', 'both' =&gt; false ),
</span><span class="lines">@@ -607,7 +603,7 @@
</span><span class="cx">                         'numlist' =&gt; array( 'title' =&gt; __('Ordered list (Alt + Shift + O)'), 'onclick' =&gt; 'fullscreen.ol();', 'both' =&gt; false ),
</span><span class="cx">                         '1' =&gt; 'separator',
</span><span class="cx">                         'blockquote' =&gt; array( 'title' =&gt; __('Blockquote (Alt+Shift+Q)'), 'onclick' =&gt; 'fullscreen.blockquote();', 'both' =&gt; false ),
</span><del>-                        'image' =&gt; array( 'title' =&gt; __('Insert/edit image (Alt + Shift + M)'), 'onclick' =&gt; &quot;jQuery('#add_{$media_link_type}').click();&quot;, 'both' =&gt; true ),
</del><ins>+                        'image' =&gt; array( 'title' =&gt; __('Insert/edit image (Alt + Shift + M)'), 'onclick' =&gt; &quot;fullscreen.medialib();&quot;, 'both' =&gt; true ),
</ins><span class="cx">                         '2' =&gt; 'separator',
</span><span class="cx">                         'link' =&gt; array( 'title' =&gt; __('Insert/edit link (Alt + Shift + A)'), 'onclick' =&gt; 'fullscreen.link();', 'both' =&gt; true ),
</span><span class="cx">                         'unlink' =&gt; array( 'title' =&gt; __('Unlink (Alt + Shift + S)'), 'onclick' =&gt; 'fullscreen.unlink();', 'both' =&gt; false ),
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_plugindevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2011-09-19 00:47:23 UTC (rev 18710)
</span><span class="lines">@@ -63,7 +63,20 @@
</span><span class="cx">                                         setUserSetting('hidetb', '0');
</span><span class="cx">                                 }
</span><span class="cx">                         });
</span><ins>+                        
+                        ed.addCommand('WP_Medialib', function() {
+                                var id = ed.getParam('wp_fullscreen_editor_id') || ed.getParam('fullscreen_editor_id') || ed.id,
+                                        link = tinymce.DOM.select('#wp-' + id + '-media-buttons a.thickbox');
</ins><span class="cx"> 
</span><ins>+                                if ( link &amp;&amp; link[0] )
+                                        link = link[0];
+                                else
+                                        return;
+
+                                tb_show('', link.href);
+                                tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
+                        });
+
</ins><span class="cx">                         // Register buttons
</span><span class="cx">                         ed.addButton('wp_more', {
</span><span class="cx">                                 title : 'wordpress.wp_more_desc',
</span><span class="lines">@@ -86,49 +99,19 @@
</span><span class="cx">                                 cmd : 'WP_Adv'
</span><span class="cx">                         });
</span><span class="cx"> 
</span><del>-                        // Add Media buttons
</del><ins>+                        // Add Media button
</ins><span class="cx">                         ed.addButton('add_media', {
</span><span class="cx">                                 title : 'wordpress.add_media',
</span><del>-                                image : url + '/img/media.gif',
-                                onclick : function() {
-                                        tb_show('', tinymce.DOM.get('add_media').href);
-                                        tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
-                                }
-                        });
-
-                        ed.addButton('add_image', {
-                                title : 'wordpress.add_image',
</del><span class="cx">                                 image : url + '/img/image.gif',
</span><del>-                                onclick : function() {
-                                        tb_show('', tinymce.DOM.get('add_image').href);
-                                        tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
-                                }
</del><ins>+                                cmd : 'WP_Medialib'
</ins><span class="cx">                         });
</span><span class="cx"> 
</span><del>-                        ed.addButton('add_video', {
-                                title : 'wordpress.add_video',
-                                image : url + '/img/video.gif',
-                                onclick : function() {
-                                        tb_show('', tinymce.DOM.get('add_video').href);
-                                        tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
-                                }
-                        });
-
-                        ed.addButton('add_audio', {
-                                title : 'wordpress.add_audio',
-                                image : url + '/img/audio.gif',
-                                onclick : function() {
-                                        tb_show('', tinymce.DOM.get('add_audio').href);
-                                        tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );
-                                }
-                        });
-
</del><span class="cx">                         // Add Media buttons to fullscreen and handle align buttons for image captions
</span><span class="cx">                         ed.onBeforeExecCommand.add(function(ed, cmd, ui, val, o) {
</span><span class="cx">                                 var DOM = tinymce.DOM, n, DL, DIV, cls, a, align;
</span><span class="cx">                                 if ( 'mceFullScreen' == cmd ) {
</span><del>-                                        if ( 'mce_fullscreen' != ed.id &amp;&amp; DOM.get('add_audio') &amp;&amp; DOM.get('add_video') &amp;&amp; DOM.get('add_image') &amp;&amp; DOM.get('add_media') )
-                                                ed.settings.theme_advanced_buttons1 += ',|,add_image,add_video,add_audio,add_media';
</del><ins>+                                        if ( 'mce_fullscreen' != ed.id &amp;&amp; DOM.select('a.thickbox').length )
+                                                ed.settings.theme_advanced_buttons1 += ',|,add_media';
</ins><span class="cx">                                 }
</span><span class="cx"> 
</span><span class="cx">                                 if ( 'JustifyLeft' == cmd || 'JustifyRight' == cmd || 'JustifyCenter' == cmd ) {
</span><span class="lines">@@ -253,7 +236,7 @@
</span><span class="cx">                         ed.addShortcut('alt+shift+n', ed.getLang('spellchecker.desc'), 'mceSpellCheck');
</span><span class="cx">                         ed.addShortcut('alt+shift+a', ed.getLang('link_desc'), 'mceLink');
</span><span class="cx">                         ed.addShortcut('alt+shift+s', ed.getLang('unlink_desc'), 'unlink');
</span><del>-                        ed.addShortcut('alt+shift+m', ed.getLang('image_desc'), 'mceImage');
</del><ins>+                        ed.addShortcut('alt+shift+m', ed.getLang('image_desc'), 'WP_Medialib');
</ins><span class="cx">                         ed.addShortcut('alt+shift+g', ed.getLang('fullscreen.desc'), 'mceFullScreen');
</span><span class="cx">                         ed.addShortcut('alt+shift+z', ed.getLang('wp_adv_desc'), 'WP_Adv');
</span><span class="cx">                         ed.addShortcut('alt+shift+h', ed.getLang('help_desc'), 'WP_Help');
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2011-09-19 00:47:23 UTC (rev 18710)
</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)}}}}});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(i.getParam(&quo
 t;wpautop&quot;,true)&amp;&amp;typeof(switchEditors)==&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;stri
 ketrough_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){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.r
 eplace(/\[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(!t
 his.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.PluginMana
 ger.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.addCommand(&quot;WP_Medialib&quot;,function(){var j=c.getParam(&quot;wp_fullscreen_editor_id&quot;)||c.getParam(&quot;fullscreen_editor_id&quot;)||c.id,i=tinymce.DOM.select(&quot;#wp-&quot;+j+&quot;-media-buttons a.thickbox&quot;);if(i&amp;&amp;i[0]){i=i[0]}else{return}tb_show(&quot;&quot;,i.href);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quo
 t;],&quot;z-index&quot;,&quot;999999&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;wordpress.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/image.gif&quot;,cmd:&quot;WP_Medialib&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.select(&quot;a.thickbox&quot;).length){p.settings.theme_advanced_buttons1+=&quot;,|,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(&q
 uot;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 ?\/?&g
 t;|\u00a0|\uFEFF)?&lt;\/p&gt;/g,&quot;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&quot;)});c.onSaveContent.add(function(i,j){if(i.getParam(&quot;wpautop&quot;,true)&amp;&amp;typeof(switchEditors)==&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&qu
 ot;,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;WP_Medialib&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){cl
 earTimeout(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/conten
 t.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="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 (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-includes/script-loader.php        2011-09-19 00:47:23 UTC (rev 18710)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'editor', &quot;/wp-admin/js/editor$suffix.js&quot;, array('utils','jquery'), '20110820', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wp-fullscreen', &quot;/wp-admin/js/wp-fullscreen$suffix.js&quot;, array('jquery'), '20110826', 1 );
</del><ins>+        $scripts-&gt;add( 'wp-fullscreen', &quot;/wp-admin/js/wp-fullscreen$suffix.js&quot;, array('jquery'), '20110918', 1 );
</ins><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6.1');
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (18709 => 18710)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2011-09-18 23:23:39 UTC (rev 18709)
+++ trunk/wp-includes/version.php        2011-09-19 00:47:23 UTC (rev 18710)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global string $tinymce_version
</span><span class="cx">  */
</span><del>-$tinymce_version = '345-20110917';
</del><ins>+$tinymce_version = '345-20110918';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the cache manifest version
</span></span></pre>
</div>
</div>

</body>
</html>