<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[12112] trunk: PressThis: fix TinyMCE config and IE6 css &quot;hasLayout&quot;</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12112">12112</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2009-10-27 00:23:58 +0000 (Tue, 27 Oct 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>PressThis: fix TinyMCE config and IE6 css &quot;hasLayout&quot;</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincsspressthiscss">trunk/wp-admin/css/press-this.css</a></li>
<li><a href="#trunkwpadmincsspressthisdevcss">trunk/wp-admin/css/press-this.dev.css</a></li>
<li><a href="#trunkwpadminpressthisphp">trunk/wp-admin/press-this.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="#trunkwpincludesjstinymcepluginswpeditimageeditor_plugindevjs">trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpeditimageeditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpgalleryeditor_plugindevjs">trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpgalleryeditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js</a></li>
<li><a href="#trunkwpincludesjstinymcewptinymcejs">trunk/wp-includes/js/tinymce/wp-tinymce.js</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="trunkwpadmincsspressthiscss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/press-this.css (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/press-this.css        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-admin/css/press-this.css        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -1 +1 @@
</span><del>-body{font:13px &quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;color:#333;margin:0;padding:0;min-width:675px;min-height:400px;}img{border:none;}#wphead{border-top:none;padding-top:4px;background:#444!important;}.tagchecklist span a{background:transparent url(../images/xit.gif) no-repeat 0 0;}#poststuff #edButtonPreview,#poststuff #edButtonHTML{-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-style:solid;border-width:1px;cursor:pointer;display:block;height:18px;margin:0 5px 0 0;padding:0 5px 0;font-size:10px;line-height:18px;float:left;}.howto{margin-top:2px;margin-bottom:3px;font-size:11px;font-style:italic;display:block;}input.text{outline-color:-moz-use-text-color;outline-style:none;outline-width:medium;width:100%;}#message{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}div#poststuff{margin:10px;}div.zerosize{border:0 none;height:0;margin:0;overflow:hidden;padding:0;width:0;}#poststuff #edButtonPreview.active,#poststuff #edButtonHTML.active{display:none;}.posting{margin-right:212px;position:relative;}#side-info-column{float:right;width:200px;position:relative;right:0;}#side-info-column .sleeve{padding-top:5px;}#poststuff .inside{font-size:11px;margin:8px;}#poststuff h2,#poststuff h3{font-size:12px;font-weight:bold;line-height:1;margin:0;padding:7px 9px;}#tagsdiv-post_tag h3,#categorydiv h3{cursor:pointer;}h3.tb{text-shadow:0 1px 0 #fff;font-weight:bold;font-size:12px;margin-left:5px;}#TB_window{border:1px solid #333;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}.postbox,.stuffbox{margin-bottom:10px;border-width:1px;border-style:solid;line-height:1;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}.stuffbox:hover .handlediv{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -111px;}.handlediv{float:right;height:26px;width:23px;}#title,.tbtitle{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border-style:solid;border-width:1px;font-size:1.7em;outline:none;padding:3px 4px;border-color:#dfdfdf;}.tbtitle{font-size:12px;padding:3px;}#title{width:97%;}.editor-container{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border:1px solid #dfdfdf;background-color:#fff;}.postdivrich{padding-top:25px;position:relative;}.actions{float:right;margin:-19px 0 0;}#extra-fields .actions{margin:-15px -5px 0 0;}.actions li{float:left;list-style:none;margin-right:10px;}#extra-fields .button{margin-right:5px;padding:3px 6px;border-radius:10px;-webkit-border-radius:10px;-khtml-border-radius:10px;-moz-border-radius:10px;}.photolist{margin-top:-10px;}#photo_saving{margin:0 8px 8px;vertical-align:middle;}#img_container{background-color:#fff;}#img_container_container{overflow:auto;}#extra-fields{margin-top:10px;position:relative;}#waiting{margin-top:10px;}#extra-fields .postbox{margin-bottom:5px;}#extra-fields .titlewrap{padding:0;overflow:auto;height:100px;}#img_container a{display:block;float:left;overflow:hidden;vertical-align:center;}#img_container img,#img_container a{width:68px;height:68px;}#img_container img{border:none;background-color:#f4f4f4;cursor:pointer;}#img_container a,#img_container a:link,#img_container a:visited{border:1px solid #ccc;display:block;position:relative;}#img_container a:hover,#img_container a:active{border-color:#000;z-index:1000;border-width:2px;margin:-1px;}#embed-code{width:100%;height:98px;}#viewsite{padding:0;margin:0 0 20px 5px;font-size:10px;clear:both;}.wp-hidden-children .wp-hidden-child{display:none;}#category-adder{padding:4px 0;}#category-adder h4{margin:0 0 8px;}#category-add input{width:94%;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;margin:1px;padding:3px;}#category-add select{width:70%;-x-system-font:none;border-style:solid;border-width:1px;font-family:&quot;Lucida Grande&quot;,&quot;Bitstream Vera Sans&quot;,Verdana,Arial,sans-serif;font-size:12px;height:2em;line-height:20px;padding:2px;margin:1px;vertical-align:top;}#category-add input,#category-add-sumbit{width:auto;}#categorydiv ul,#linkcategorydiv ul{list-style:none;padding:0;margin:0;}#categorydiv ul.categorychecklist ul{margin-left:18px;}#categorydiv div.tabs-panel{height:140px;overflow:auto;}ul.categorychecklist li{margin:0;padding:0;line-height:19px;}.screen-reader-text{display:none;}.tagsdiv .newtag{margin-right:5px;}.jaxtag{clear:both;margin:0;}.tagadd{margin-left:3px;}.tagchecklist{margin-top:3px;margin-bottom:1em;font-size:12px;overflow:auto;}.tagchecklist strong{position:absolute;font-size:.75em;}.tagchecklist span{margin-right:.5em;margin-left:10px;display:block;float:left;font-size:11px;line-height:1.8em;white-space:nowrap;cursor:default;}.tagchecklist span a{margin:6px 0 0 -9px;cursor:pointer;width:10px;height:10px;display:block;float:left;text-indent:-9999px;overflow:hidden;position:absolute;}#content{margin:5px 0;padding:0 5px;border:0 none;height:365px;width:97%!important;}#saving{display:inline;vertical-align:middle;}.submit input,.button,.button-primary,.button-secondary,.button-highlighted,#postcustomstuff .submit input{font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;text-decoration:none;font-size:11px!important;line-height:16px;padding:2px 8px;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;}.button-primary{background:#21759B url(../images/button-grad.png) repeat-x scroll left top;border-color:#21759B;color:#fff;}.ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;display:none;border-width:1px;border-style:solid;}.ac_results li{padding:2px 5px;white-space:nowrap;text-align:left;}.ac_over{cursor:pointer;}.ac_match{text-decoration:underline;}#TB_ajaxContent #options{position:absolute;top:20px;right:25px;padding:5px;}#TB_ajaxContent h3{margin-bottom:.25em;}.updated{margin:10px 0;padding:0;border-width:1px;border-style:solid;width:99%;}.updated p,.error p{margin:.6em 0;padding:0 .6em;}.error a{text-decoration:underline;}.updated a{text-decoration:none;padding-bottom:2px;}#post_status{margin-left:10px;margin-bottom:1em;display:block;}#footer{height:65px;display:block;width:640px;padding:10px 0 0 60px;margin:0;position:absolute;bottom:0;font-size:12px;}#footer p{margin:0;padding:7px 0;}#footer p a{text-decoration:none;}#footer p a:hover{text-decoration:underline;}.centered{text-align:center;}.hidden{display:none;}.postbox input[type=&quot;text&quot;],.postbox textarea,.stuffbox input[type=&quot;text&quot;],.stuffbox textarea{border-width:1px;border-style:solid;}.taghint{color:#aaa;margin:-17px 0 0 7px;visibility:hidden;}input.newtag ~ div.taghint{visibility:visible;}input.newtag:focus ~ div.taghint{visibility:hidden;}
</del><span class="cx">\ No newline at end of file
</span><ins>+body{font:13px &quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;color:#333;margin:0;padding:0;min-width:675px;min-height:400px;}img{border:none;}#wphead{border-top:none;padding-top:4px;background:#444!important;}.tagchecklist span a{background:transparent url(../images/xit.gif) no-repeat 0 0;}#poststuff #edButtonPreview,#poststuff #edButtonHTML{-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-style:solid;border-width:1px;cursor:pointer;display:block;height:18px;margin:0 5px 0 0;padding:0 5px 0;font-size:10px;line-height:18px;float:left;}.howto{margin-top:2px;margin-bottom:3px;font-size:11px;font-style:italic;display:block;}input.text{outline-color:-moz-use-text-color;outline-style:none;outline-width:medium;width:100%;}#message{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}div#poststuff{margin:10px;}div.zerosize{border:0 none;height:0;margin:0;overflow:hidden;padding:0;width:0;}#poststuff #edButtonPreview.active,#poststuff #edButtonHTML.active{display:none;}.posting{margin-right:212px;position:relative;}#side-info-column{float:right;width:200px;position:relative;right:0;}#side-info-column .sleeve{padding-top:5px;}#poststuff .inside{font-size:11px;margin:8px;}#poststuff h2,#poststuff h3{font-size:12px;font-weight:bold;line-height:1;margin:0;padding:7px 9px;}#tagsdiv-post_tag h3,#categorydiv h3{cursor:pointer;}h3.tb{text-shadow:0 1px 0 #fff;font-weight:bold;font-size:12px;margin-left:5px;}#TB_window{border:1px solid #333;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}.postbox,.stuffbox{margin-bottom:10px;border-width:1px;border-style:solid;line-height:1;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}.stuffbox:hover .handlediv{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -111px;}.handlediv{float:right;height:26px;width:23px;}#title,.tbtitle{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border-style:solid;border-width:1px;font-size:1.7em;outline:none;padding:3px 4px;border-color:#dfdfdf;}.tbtitle{font-size:12px;padding:3px;}#title{width:97%;}.editor-container{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border:1px solid #dfdfdf;background-color:#fff;}.postdivrich{padding-top:25px;position:relative;}.actions{float:right;margin:-19px 0 0;}#extra-fields .actions{margin:-15px -5px 0 0;}.actions li{float:left;list-style:none;margin-right:10px;}#extra-fields .button{margin-right:5px;padding:3px 6px;border-radius:10px;-webkit-border-radius:10px;-khtml-border-radius:10px;-moz-border-radius:10px;}.photolist{margin-top:-10px;}#photo_saving{margin:0 8px 8px;vertical-align:middle;}#img_container{background-color:#fff;}#img_container_container{overflow:auto;}#extra-fields{margin-top:10px;position:relative;}#waiting{margin-top:10px;}#extra-fields .postbox{margin-bottom:5px;}#extra-fields .titlewrap{padding:0;overflow:auto;height:100px;}#img_container a{display:block;float:left;overflow:hidden;vertical-align:center;}#img_container img,#img_container a{width:68px;height:68px;}#img_container img{border:none;background-color:#f4f4f4;cursor:pointer;}#img_container a,#img_container a:link,#img_container a:visited{border:1px solid #ccc;display:block;position:relative;}#img_container a:hover,#img_container a:active{border-color:#000;z-index:1000;border-width:2px;margin:-1px;}#embed-code{width:100%;height:98px;}#viewsite{padding:0;margin:0 0 20px 5px;font-size:10px;clear:both;}.wp-hidden-children .wp-hidden-child{display:none;}#category-adder{padding:4px 0;}#category-adder h4{margin:0 0 8px;}#category-add input{width:94%;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;margin:1px;padding:3px;}#category-add select{width:70%;-x-system-font:none;border-style:solid;border-width:1px;font-family:&quot;Lucida Grande&quot;,&quot;Bitstream Vera Sans&quot;,Verdana,Arial,sans-serif;font-size:12px;height:2em;line-height:20px;padding:2px;margin:1px;vertical-align:top;}#category-add input,#category-add-sumbit{width:auto;}#categorydiv ul,#linkcategorydiv ul{list-style:none;padding:0;margin:0;}#categorydiv ul.categorychecklist ul{margin-left:18px;}#categorydiv div.tabs-panel{height:140px;overflow:auto;}ul.categorychecklist li{margin:0;padding:0;line-height:19px;}.screen-reader-text{display:none;}.tagsdiv .newtag{margin-right:5px;}.jaxtag{clear:both;margin:0;}.tagadd{margin-left:3px;}.tagchecklist{margin-top:3px;margin-bottom:1em;font-size:12px;overflow:auto;}.tagchecklist strong{position:absolute;font-size:.75em;}.tagchecklist span{margin-right:.5em;margin-left:10px;display:block;float:left;font-size:11px;line-height:1.8em;white-space:nowrap;cursor:default;}.tagchecklist span a{margin:6px 0 0 -9px;cursor:pointer;width:10px;height:10px;display:block;float:left;text-indent:-9999px;overflow:hidden;position:absolute;}#content{margin:5px 0;padding:0 5px;border:0 none;height:365px;width:97%!important;}* html .postdivrich{zoom:1;}#saving{display:inline;vertical-align:middle;}.submit input,.button,.button-primary,.button-secondary,.button-highlighted,#postcustomstuff .submit input{font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;text-decoration:none;font-size:11px!important;line-height:16px;padding:2px 8px;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;}.button-primary{background:#21759B url(../images/button-grad.png) repeat-x scroll left top;border-color:#21759B;color:#fff;}.ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;display:none;border-width:1px;border-style:solid;}.ac_results li{padding:2px 5px;white-space:nowrap;text-align:left;}.ac_over{cursor:pointer;}.ac_match{text-decoration:underline;}#TB_ajaxContent #options{position:absolute;top:20px;right:25px;padding:5px;}#TB_ajaxContent h3{margin-bottom:.25em;}.updated{margin:10px 0;padding:0;border-width:1px;border-style:solid;width:99%;}.updated p,.error p{margin:.6em 0;padding:0 .6em;}.error a{text-decoration:underline;}.updated a{text-decoration:none;padding-bottom:2px;}#post_status{margin-left:10px;margin-bottom:1em;display:block;}#footer{height:65px;display:block;width:640px;padding:10px 0 0 60px;margin:0;position:absolute;bottom:0;font-size:12px;}#footer p{margin:0;padding:7px 0;}#footer p a{text-decoration:none;}#footer p a:hover{text-decoration:underline;}.centered{text-align:center;}.hidden{display:none;}.postbox input[type=&quot;text&quot;],.postbox textarea,.stuffbox input[type=&quot;text&quot;],.stuffbox textarea{border-width:1px;border-style:solid;}.taghint{color:#aaa;margin:-17px 0 0 7px;visibility:hidden;}input.newtag ~ div.taghint{visibility:visible;}input.newtag:focus ~ div.taghint{visibility:hidden;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincsspressthisdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/press-this.dev.css (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/press-this.dev.css        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-admin/css/press-this.dev.css        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -176,7 +176,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #title {
</span><del>-width: 97%;
</del><ins>+        width: 97%;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .editor-container {
</span><span class="lines">@@ -427,6 +427,10 @@
</span><span class="cx">         width: 97% !important;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+* html .postdivrich {
+        zoom: 1;
+}
+
</ins><span class="cx"> /* Submit */
</span><span class="cx"> #saving {
</span><span class="cx">         display: inline;
</span></span></pre></div>
<a id="trunkwpadminpressthisphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/press-this.php (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/press-this.php        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-admin/press-this.php        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -529,7 +529,6 @@
</span><span class="cx">                                                         &lt;div class=&quot;ajaxtag&quot;&gt;
</span><span class="cx">                                                                 &lt;input type=&quot;text&quot; name=&quot;newtag[post_tag]&quot; class=&quot;newtag form-input-tip&quot; size=&quot;16&quot; autocomplete=&quot;off&quot; value=&quot;&quot; /&gt;
</span><span class="cx">                                                                 &lt;input type=&quot;button&quot; class=&quot;button tagadd&quot; value=&quot;&lt;?php esc_attr_e('Add'); ?&gt;&quot; tabindex=&quot;3&quot; /&gt;
</span><del>-                                                                &lt;div class=&quot;taghint&quot;&gt;&lt;?php _e('Add new tag'); ?&gt;&lt;/div&gt;
</del><span class="cx">                                                         &lt;/div&gt;
</span><span class="cx">                                                 &lt;/p&gt;
</span><span class="cx">                                                 &lt;div class=&quot;tagchecklist&quot;&gt;&lt;/div&gt;
</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 (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -6,6 +6,8 @@
</span><span class="cx">         var DOM = tinymce.DOM;
</span><span class="cx"> 
</span><span class="cx">         tinymce.create('tinymce.plugins.WordPress', {
</span><ins>+                mceTout : 0,
+
</ins><span class="cx">                 init : function(ed, url) {
</span><span class="cx">                         var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML;
</span><span class="cx">                         moreHTML = '&lt;img src=&quot;' + url + '/img/trans.gif&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+ed.getLang('wordpress.wp_more_alt')+'&quot; /&gt;';
</span><span class="lines">@@ -259,7 +261,7 @@
</span><span class="cx">                 },
</span><span class="cx"> 
</span><span class="cx">                 _showButtons : function(n, id) {
</span><del>-                        var t = this, ed = tinyMCE.activeEditor, p1, p2, vp, DOM = tinymce.DOM, X, Y;
</del><ins>+                        var ed = tinyMCE.activeEditor, p1, p2, vp, DOM = tinymce.DOM, X, Y;
</ins><span class="cx"> 
</span><span class="cx">                         vp = ed.dom.getViewPort(ed.getWin());
</span><span class="cx">                         p1 = DOM.getPos(ed.getContentAreaContainer());
</span><span class="lines">@@ -274,14 +276,18 @@
</span><span class="cx">                                 'display' : 'block'
</span><span class="cx">                         });
</span><span class="cx"> 
</span><del>-                        t.tout = window.setTimeout( function(){ed.plugins.wordpress._hideButtons();}, 5000 );
</del><ins>+                        this.mceTout = setTimeout( function(){ed.plugins.wordpress._hideButtons();}, 5000 );
</ins><span class="cx">                 },
</span><span class="cx"> 
</span><span class="cx">                 _hideButtons : function() {
</span><del>-                        tinymce.DOM.hide(['wp_editbtns', 'wp_gallerybtns']);
</del><ins>+                        if ( document.getElementById('wp_editbtns') )
+                                tinymce.DOM.hide('wp_editbtns');
</ins><span class="cx"> 
</span><del>-                        if ( this.tout )
-                                window.clearTimeout(this.tout);
</del><ins>+                        if ( document.getElementById('wp_gallerybtns') )
+                                tinymce.DOM.hide('wp_gallerybtns');
+
+                        if ( this.mceTout )
+                                clearTimeout(this.mceTout);
</ins><span class="cx">                 },
</span><span class="cx"> 
</span><span class="cx">                 do_align : function(n, a) {
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){var a=tinymce.DOM;tinymce.create(&quot;tinymce.plugins.WordPress&quot;,{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&quot;,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;,image:d+&quot;/img/more.gif&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;,image:d+&quot;/img/help.gif&quot;,cmd:&quot;WP_Help&quot;});c.addButton(&quot;wp_adv&quot;,{title:&quot;wordpress.wp_adv_desc&quot;,image:d+&quot;/img/toolbars.gif&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(i,l,k,m){var j=tinymce.DOM;if(&quot;mceFullScreen&quot;!=l){return}if(&quot;mce_fullscreen&quot;!=i.id&amp;&amp;j.get(&quot;add_audio&quot;)&amp;&amp;j.get(&quot;add_video&quot;)&amp;&amp;j.get(&quot;add_image&quot;)&amp;&amp;j.get(&quot;add_media&quot;)){i.settings.theme_advanced_buttons1+=&quot;,|,add_image,add_video,add_audio,add_media&quot;}});c.addCommand(&quot;JustifyLeft&quot;,function(){var i=c.selection.getNode();if(i.nodeName!=&quot;IMG&quot;){c.editorCommands.mceJustify(&quot;JustifyLeft&quot;,&quot;left&quot;)}else{c.plugins.wordpress.do_align(i,&quot;alignleft&quot;)}});c.addCommand(&quot;JustifyRight&quot;,function(){var i=c.selection.getNode();if(i.nodeName!=&quot;IMG&quot;){c.editorCommands.mceJustify(&quot;JustifyRight&quot;,&quot;right&quot;)}else{c.plugins.wordpress.do_align(i,&quot;alignright&quot;)}});c.addCommand(&quot;JustifyCenter&quot;,function(){var k=c.selection.getNode(),j=c.dom.getParent(k,&quot;p&quot;),i=c.dom.getParent(k,&quot;dl&quot;);if(k.nodeName==&quot;IMG&quot;&amp;&amp;(j||i)){c.plugins.wordpress.do_align(k,&quot;aligncenter&quot;)}else{c.editorCommands.mceJustify(&quot;JustifyCenter&quot;,&quot;center&quot;)}});if(&quot;undefined&quot;!=typeof wpWordCount){c.onKeyUp.add(function(i,j){if(j.keyCode==g){return}if(13==j.keyCode||8==g||46==g){wpWordCount.wc(i.getContent({format:&quot;raw&quot;}))}g=j.keyCode})}c.onSaveContent.add(function(i,j){if(typeof(switchEditors)==&quot;object&quot;){if(i.isHidden()){j.content=j.element.value}else{j.content=switchEditors.pre_wpautop(j.content)}}});c.onBeforeSetContent.add(function(i,j){j.content=e._setEmbed(j.content)});c.onPostProcess.add(function(i,j){if(j.get){j.content=e._getEmbed(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){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()})},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 k=this,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;});k.tout=window.setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){tinymce.DOM.hide([&quot;wp_editbtns&quot;,&quot;wp_gallerybtns&quot;]);if(this.tout){window.clearTimeout(this.tout)}},do_align:function(j,d){var h,f,g,b,i,e=tinyMCE.activeEditor;if(/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(j.className)){return}h=e.dom.getParent(j,&quot;p&quot;);f=e.dom.getParent(j,&quot;dl&quot;);g=e.dom.getParent(j,&quot;div&quot;);if(f&amp;&amp;g){b=e.dom.hasClass(f,d)?&quot;alignnone&quot;:d;f.className=f.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);e.dom.addClass(f,b);i=(b==&quot;aligncenter&quot;)?e.dom.addClass(g,&quot;mceIEcenter&quot;):e.dom.removeClass(g,&quot;mceIEcenter&quot;)}else{if(h){b=e.dom.hasClass(j,d)?&quot;alignnone&quot;:d;j.className=j.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);e.dom.addClass(j,b);if(b==&quot;aligncenter&quot;){e.dom.setStyle(h,&quot;textAlign&quot;,&quot;center&quot;)}else{if(h.style&amp;&amp;h.style.textAlign==&quot;center&quot;){e.dom.setStyle(h,&quot;textAlign&quot;,&quot;&quot;)}}}}e.execCommand(&quot;mceRepaint&quot;)},_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){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&quot;,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;,image:d+&quot;/img/more.gif&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;,image:d+&quot;/img/help.gif&quot;,cmd:&quot;WP_Help&quot;});c.addButton(&quot;wp_adv&quot;,{title:&quot;wordpress.wp_adv_desc&quot;,image:d+&quot;/img/toolbars.gif&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(i,l,k,m){var j=tinymce.DOM;if(&quot;mceFullScreen&quot;!=l){return}if(&quot;mce_fullscreen&quot;!=i.id&amp;&amp;j.get(&quot;add_audio&quot;)&amp;&amp;j.get(&quot;add_video&quot;)&amp;&amp;j.get(&quot;add_image&quot;)&amp;&amp;j.get(&quot;add_media&quot;)){i.settings.theme_advanced_buttons1+=&quot;,|,add_image,add_video,add_audio,add_media&quot;}});c.addCommand(&quot;JustifyLeft&quot;,function(){var i=c.selection.getNode();if(i.nodeName!=&quot;IMG&quot;){c.editorCommands.mceJustify(&quot;JustifyLeft&quot;,&quot;left&quot;)}else{c.plugins.wordpress.do_align(i,&quot;alignleft&quot;)}});c.addCommand(&quot;JustifyRight&quot;,function(){var i=c.selection.getNode();if(i.nodeName!=&quot;IMG&quot;){c.editorCommands.mceJustify(&quot;JustifyRight&quot;,&quot;right&quot;)}else{c.plugins.wordpress.do_align(i,&quot;alignright&quot;)}});c.addCommand(&quot;JustifyCenter&quot;,function(){var k=c.selection.getNode(),j=c.dom.getParent(k,&quot;p&quot;),i=c.dom.getParent(k,&quot;dl&quot;);if(k.nodeName==&quot;IMG&quot;&amp;&amp;(j||i)){c.plugins.wordpress.do_align(k,&quot;aligncenter&quot;)}else{c.editorCommands.mceJustify(&quot;JustifyCenter&quot;,&quot;center&quot;)}});if(&quot;undefined&quot;!=typeof wpWordCount){c.onKeyUp.add(function(i,j){if(j.keyCode==g){return}if(13==j.keyCode||8==g||46==g){wpWordCount.wc(i.getContent({format:&quot;raw&quot;}))}g=j.keyCode})}c.onSaveContent.add(function(i,j){if(typeof(switchEditors)==&quot;object&quot;){if(i.isHidden()){j.content=j.element.value}else{j.content=switchEditors.pre_wpautop(j.content)}}});c.onBeforeSetContent.add(function(i,j){j.content=e._setEmbed(j.content)});c.onPostProcess.add(function(i,j){if(j.get){j.content=e._getEmbed(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){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()})},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;});this.mceTout=setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){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;)}if(this.mceTout){clearTimeout(this.mceTout)}},do_align:function(j,d){var h,f,g,b,i,e=tinyMCE.activeEditor;if(/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(j.className)){return}h=e.dom.getParent(j,&quot;p&quot;);f=e.dom.getParent(j,&quot;dl&quot;);g=e.dom.getParent(j,&quot;div&quot;);if(f&amp;&amp;g){b=e.dom.hasClass(f,d)?&quot;alignnone&quot;:d;f.className=f.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);e.dom.addClass(f,b);i=(b==&quot;aligncenter&quot;)?e.dom.addClass(g,&quot;mceIEcenter&quot;):e.dom.removeClass(g,&quot;mceIEcenter&quot;)}else{if(h){b=e.dom.hasClass(j,d)?&quot;alignnone&quot;:d;j.className=j.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);e.dom.addClass(j,b);if(b==&quot;aligncenter&quot;){e.dom.setStyle(h,&quot;textAlign&quot;,&quot;center&quot;)}else{if(h.style&amp;&amp;h.style.textAlign==&quot;center&quot;){e.dom.setStyle(h,&quot;textAlign&quot;,&quot;&quot;)}}}}e.execCommand(&quot;mceRepaint&quot;)},_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){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="trunkwpincludesjstinymcepluginswpeditimageeditor_plugindevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.dev.js (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.dev.js        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.dev.js        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -164,6 +164,7 @@
</span><span class="cx">                         });
</span><span class="cx"> 
</span><span class="cx">                         tinymce.dom.Event.add(editButton, 'mousedown', function(e) {
</span><ins>+                                var ed = tinyMCE.activeEditor;
</ins><span class="cx">                                 ed.windowManager.bookmark = ed.selection.getBookmark('simple');
</span><span class="cx">                                 ed.execCommand(&quot;WP_EditImage&quot;);
</span><span class="cx">                         });
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpeditimageeditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){tinymce.create(&quot;tinymce.plugins.wpEditImage&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_EditImage&quot;,function(){var h=a.selection.getNode(),f=tinymce.DOM.getViewPort(),g=f.h,d=(720&lt;f.w)?720:f.w,e=a.dom.getAttrib(h,&quot;class&quot;);if(e.indexOf(&quot;mceItem&quot;)!=-1||e.indexOf(&quot;wpGallery&quot;)!=-1||h.nodeName!=&quot;IMG&quot;){return}tb_show(&quot;&quot;,b+&quot;/editimage.html?ver=321&amp;TB_iframe=true&quot;);tinymce.DOM.setStyles(&quot;TB_window&quot;,{width:(d-50)+&quot;px&quot;,height:(g-45)+&quot;px&quot;,&quot;margin-left&quot;:&quot;-&quot;+parseInt(((d-50)/2),10)+&quot;px&quot;});if(!tinymce.isIE6){tinymce.DOM.setStyles(&quot;TB_window&quot;,{top:&quot;20px&quot;,marginTop:&quot;0&quot;})}tinymce.DOM.setStyles(&quot;TB_iframeContent&quot;,{width:(d-50)+&quot;px&quot;,height:(g-75)+&quot;px&quot;});tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onInit.add(function(d){tinymce.dom.Event.add(d.getBody(),&quot;dragstart&quot;,function(f){if(!tinymce.isGecko&amp;&amp;f.target.nodeName==&quot;IMG&quot;&amp;&amp;d.dom.getParent(f.target,&quot;dl.wp-caption&quot;)){return tinymce.dom.Event.cancel(f)}})});a.onMouseUp.add(function(d,f){if(tinymce.isWebKit||tinymce.isOpera){return}if(d.dom.getParent(f.target,&quot;div.mceTemp&quot;)||d.dom.is(f.target,&quot;div.mceTemp&quot;)){window.setTimeout(function(){var e=tinyMCE.activeEditor,h=e.selection.getNode(),g=e.dom.getParent(h,&quot;dl.wp-caption&quot;);if(g&amp;&amp;h.width!=(parseInt(e.dom.getStyle(g,&quot;width&quot;),10)-10)){e.dom.setStyle(g,&quot;width&quot;,parseInt(h.width,10)+10);e.execCommand(&quot;mceRepaint&quot;)}},100)}});a.onMouseDown.add(function(d,g){var f;if(g.target.nodeName!=&quot;IMG&quot;){d.plugins.wordpress._hideButtons()}else{if(d.dom.getAttrib(g.target,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){d.plugins.wordpress._showButtons(g.target,&quot;wp_editbtns&quot;);if(tinymce.isGecko&amp;&amp;(f=d.dom.getParent(g.target,&quot;dl.wp-caption&quot;))&amp;&amp;d.dom.hasClass(f.parentNode,&quot;mceTemp&quot;)){d.selection.select(f.parentNode)}}}});a.onKeyPress.add(function(d,i){var f,h,g;if(i.keyCode==13&amp;&amp;(f=d.dom.getParent(d.selection.getNode(),&quot;DL&quot;))&amp;&amp;d.dom.hasClass(f,&quot;wp-caption&quot;)){g=d.dom.create(&quot;p&quot;,{},&quot;&amp;nbsp;&quot;);if((h=f.parentNode)&amp;&amp;h.nodeName==&quot;DIV&quot;){d.dom.insertAfter(g,h)}else{d.dom.insertAfter(g,f)}if(g.firstChild){d.selection.select(g.firstChild)}else{d.selection.select(g)}tinymce.dom.Event.cancel(i);return false}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_shcode(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_shcode(e.content)}})},_do_shcode:function(a){return a.replace(/\[(?:wp_)?caption([^\]]+)\]([\s\S]+?)\[\/(?:wp_)?caption\][\s\u00a0]*/g,function(g,d,k){var j,f,e,h,i;d=d.replace(/\\'|\\&amp;#39;|\\&amp;#039;/g,&quot;&amp;#39;&quot;).replace(/\\&quot;|\\&amp;quot;/g,&quot;&amp;quot;&quot;);k=k.replace(/\\&amp;#39;|\\&amp;#039;/g,&quot;&amp;#39;&quot;).replace(/\\&amp;quot;/g,&quot;&amp;quot;&quot;);j=d.match(/id=['&quot;]([^'&quot;]+)/i);f=d.match(/align=['&quot;]([^'&quot;]+)/i);e=d.match(/width=['&quot;]([0-9]+)/);h=d.match(/caption=['&quot;]([^'&quot;]+)/i);j=(j&amp;&amp;j[1])?j[1]:&quot;&quot;;f=(f&amp;&amp;f[1])?f[1]:&quot;alignnone&quot;;e=(e&amp;&amp;e[1])?e[1]:&quot;&quot;;h=(h&amp;&amp;h[1])?h[1]:&quot;&quot;;if(!e||!h){return k}i=(f==&quot;aligncenter&quot;)?&quot;mceTemp mceIEcenter&quot;:&quot;mceTemp&quot;;return'&lt;div class=&quot;'+i+'&quot; draggable&gt;&lt;dl id=&quot;'+j+'&quot; class=&quot;wp-caption '+f+'&quot; style=&quot;width: '+(10+parseInt(e))+'px&quot;&gt;&lt;dt class=&quot;wp-caption-dt&quot;&gt;'+k+'&lt;/dt&gt;&lt;dd class=&quot;wp-caption-dd&quot;&gt;'+h+&quot;&lt;/dd&gt;&lt;/dl&gt;&lt;/div&gt;&quot;})},_get_shcode:function(a){return a.replace(/&lt;div class=&quot;mceTemp[^&quot;]*&quot;&gt;\s*&lt;dl([^&gt;]+)&gt;\s*&lt;dt[^&gt;]+&gt;([\s\S]+?)&lt;\/dt&gt;\s*&lt;dd[^&gt;]+&gt;(.+?)&lt;\/dd&gt;\s*&lt;\/dl&gt;\s*&lt;\/div&gt;\s*/gi,function(g,d,j,h){var i,f,e;i=d.match(/id=['&quot;]([^'&quot;]+)/i);f=d.match(/class=['&quot;]([^'&quot;]+)/i);e=j.match(/width=['&quot;]([0-9]+)/);i=(i&amp;&amp;i[1])?i[1]:&quot;&quot;;f=(f&amp;&amp;f[1])?f[1]:&quot;alignnone&quot;;e=(e&amp;&amp;e[1])?e[1]:&quot;&quot;;if(!e||!h){return j}f=f.match(/align[^ '&quot;]+/)||&quot;alignnone&quot;;h=h.replace(/&lt;\S[^&lt;&gt;]*&gt;/gi,&quot;&quot;).replace(/'/g,&quot;&amp;#39;&quot;).replace(/&quot;/g,&quot;&amp;quot;&quot;);return'[caption id=&quot;'+i+'&quot; align=&quot;'+f+'&quot; width=&quot;'+e+'&quot; caption=&quot;'+h+'&quot;]'+j+&quot;[/caption]&quot;})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_editbtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_editbtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/image.png&quot;,id:&quot;wp_editimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wpeditimage.edit_img&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(f){a.windowManager.bookmark=a.selection.getBookmark(&quot;simple&quot;);a.execCommand(&quot;WP_EditImage&quot;)});c=d.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wpeditimage.del_img&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(i){var f=tinyMCE.activeEditor,g=f.selection.getNode(),h;if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.getAttrib(g,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){if((h=f.dom.getParent(g,&quot;div&quot;))&amp;&amp;f.dom.hasClass(h,&quot;mceTemp&quot;)){f.dom.remove(h)}else{if((h=f.dom.getParent(g,&quot;A&quot;))&amp;&amp;h.childNodes.length==1){f.dom.remove(h)}else{f.dom.remove(g)}}f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Edit Image&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpeditimage&quot;,tinymce.plugins.wpEditImage)})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(){tinymce.create(&quot;tinymce.plugins.wpEditImage&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_EditImage&quot;,function(){var h=a.selection.getNode(),f=tinymce.DOM.getViewPort(),g=f.h,d=(720&lt;f.w)?720:f.w,e=a.dom.getAttrib(h,&quot;class&quot;);if(e.indexOf(&quot;mceItem&quot;)!=-1||e.indexOf(&quot;wpGallery&quot;)!=-1||h.nodeName!=&quot;IMG&quot;){return}tb_show(&quot;&quot;,b+&quot;/editimage.html?ver=321&amp;TB_iframe=true&quot;);tinymce.DOM.setStyles(&quot;TB_window&quot;,{width:(d-50)+&quot;px&quot;,height:(g-45)+&quot;px&quot;,&quot;margin-left&quot;:&quot;-&quot;+parseInt(((d-50)/2),10)+&quot;px&quot;});if(!tinymce.isIE6){tinymce.DOM.setStyles(&quot;TB_window&quot;,{top:&quot;20px&quot;,marginTop:&quot;0&quot;})}tinymce.DOM.setStyles(&quot;TB_iframeContent&quot;,{width:(d-50)+&quot;px&quot;,height:(g-75)+&quot;px&quot;});tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onInit.add(function(d){tinymce.dom.Event.add(d.getBody(),&quot;dragstart&quot;,function(f){if(!tinymce.isGecko&amp;&amp;f.target.nodeName==&quot;IMG&quot;&amp;&amp;d.dom.getParent(f.target,&quot;dl.wp-caption&quot;)){return tinymce.dom.Event.cancel(f)}})});a.onMouseUp.add(function(d,f){if(tinymce.isWebKit||tinymce.isOpera){return}if(d.dom.getParent(f.target,&quot;div.mceTemp&quot;)||d.dom.is(f.target,&quot;div.mceTemp&quot;)){window.setTimeout(function(){var e=tinyMCE.activeEditor,h=e.selection.getNode(),g=e.dom.getParent(h,&quot;dl.wp-caption&quot;);if(g&amp;&amp;h.width!=(parseInt(e.dom.getStyle(g,&quot;width&quot;),10)-10)){e.dom.setStyle(g,&quot;width&quot;,parseInt(h.width,10)+10);e.execCommand(&quot;mceRepaint&quot;)}},100)}});a.onMouseDown.add(function(d,g){var f;if(g.target.nodeName!=&quot;IMG&quot;){d.plugins.wordpress._hideButtons()}else{if(d.dom.getAttrib(g.target,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){d.plugins.wordpress._showButtons(g.target,&quot;wp_editbtns&quot;);if(tinymce.isGecko&amp;&amp;(f=d.dom.getParent(g.target,&quot;dl.wp-caption&quot;))&amp;&amp;d.dom.hasClass(f.parentNode,&quot;mceTemp&quot;)){d.selection.select(f.parentNode)}}}});a.onKeyPress.add(function(d,i){var f,h,g;if(i.keyCode==13&amp;&amp;(f=d.dom.getParent(d.selection.getNode(),&quot;DL&quot;))&amp;&amp;d.dom.hasClass(f,&quot;wp-caption&quot;)){g=d.dom.create(&quot;p&quot;,{},&quot;&amp;nbsp;&quot;);if((h=f.parentNode)&amp;&amp;h.nodeName==&quot;DIV&quot;){d.dom.insertAfter(g,h)}else{d.dom.insertAfter(g,f)}if(g.firstChild){d.selection.select(g.firstChild)}else{d.selection.select(g)}tinymce.dom.Event.cancel(i);return false}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_shcode(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_shcode(e.content)}})},_do_shcode:function(a){return a.replace(/\[(?:wp_)?caption([^\]]+)\]([\s\S]+?)\[\/(?:wp_)?caption\][\s\u00a0]*/g,function(g,d,k){var j,f,e,h,i;d=d.replace(/\\'|\\&amp;#39;|\\&amp;#039;/g,&quot;&amp;#39;&quot;).replace(/\\&quot;|\\&amp;quot;/g,&quot;&amp;quot;&quot;);k=k.replace(/\\&amp;#39;|\\&amp;#039;/g,&quot;&amp;#39;&quot;).replace(/\\&amp;quot;/g,&quot;&amp;quot;&quot;);j=d.match(/id=['&quot;]([^'&quot;]+)/i);f=d.match(/align=['&quot;]([^'&quot;]+)/i);e=d.match(/width=['&quot;]([0-9]+)/);h=d.match(/caption=['&quot;]([^'&quot;]+)/i);j=(j&amp;&amp;j[1])?j[1]:&quot;&quot;;f=(f&amp;&amp;f[1])?f[1]:&quot;alignnone&quot;;e=(e&amp;&amp;e[1])?e[1]:&quot;&quot;;h=(h&amp;&amp;h[1])?h[1]:&quot;&quot;;if(!e||!h){return k}i=(f==&quot;aligncenter&quot;)?&quot;mceTemp mceIEcenter&quot;:&quot;mceTemp&quot;;return'&lt;div class=&quot;'+i+'&quot; draggable&gt;&lt;dl id=&quot;'+j+'&quot; class=&quot;wp-caption '+f+'&quot; style=&quot;width: '+(10+parseInt(e))+'px&quot;&gt;&lt;dt class=&quot;wp-caption-dt&quot;&gt;'+k+'&lt;/dt&gt;&lt;dd class=&quot;wp-caption-dd&quot;&gt;'+h+&quot;&lt;/dd&gt;&lt;/dl&gt;&lt;/div&gt;&quot;})},_get_shcode:function(a){return a.replace(/&lt;div class=&quot;mceTemp[^&quot;]*&quot;&gt;\s*&lt;dl([^&gt;]+)&gt;\s*&lt;dt[^&gt;]+&gt;([\s\S]+?)&lt;\/dt&gt;\s*&lt;dd[^&gt;]+&gt;(.+?)&lt;\/dd&gt;\s*&lt;\/dl&gt;\s*&lt;\/div&gt;\s*/gi,function(g,d,j,h){var i,f,e;i=d.match(/id=['&quot;]([^'&quot;]+)/i);f=d.match(/class=['&quot;]([^'&quot;]+)/i);e=j.match(/width=['&quot;]([0-9]+)/);i=(i&amp;&amp;i[1])?i[1]:&quot;&quot;;f=(f&amp;&amp;f[1])?f[1]:&quot;alignnone&quot;;e=(e&amp;&amp;e[1])?e[1]:&quot;&quot;;if(!e||!h){return j}f=f.match(/align[^ '&quot;]+/)||&quot;alignnone&quot;;h=h.replace(/&lt;\S[^&lt;&gt;]*&gt;/gi,&quot;&quot;).replace(/'/g,&quot;&amp;#39;&quot;).replace(/&quot;/g,&quot;&amp;quot;&quot;);return'[caption id=&quot;'+i+'&quot; align=&quot;'+f+'&quot; width=&quot;'+e+'&quot; caption=&quot;'+h+'&quot;]'+j+&quot;[/caption]&quot;})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_editbtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_editbtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/image.png&quot;,id:&quot;wp_editimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wpeditimage.edit_img&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(g){var f=tinyMCE.activeEditor;f.windowManager.bookmark=f.selection.getBookmark(&quot;simple&quot;);f.execCommand(&quot;WP_EditImage&quot;)});c=d.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wpeditimage.del_img&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(i){var f=tinyMCE.activeEditor,g=f.selection.getNode(),h;if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.getAttrib(g,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){if((h=f.dom.getParent(g,&quot;div&quot;))&amp;&amp;f.dom.hasClass(h,&quot;mceTemp&quot;)){f.dom.remove(h)}else{if((h=f.dom.getParent(g,&quot;A&quot;))&amp;&amp;h.childNodes.length==1){f.dom.remove(h)}else{f.dom.remove(g)}}f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Edit Image&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpeditimage&quot;,tinymce.plugins.wpEditImage)})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpgalleryeditor_plugindevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.dev.js (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.dev.js        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.dev.js        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -82,6 +82,7 @@
</span><span class="cx">                         });
</span><span class="cx"> 
</span><span class="cx">                         tinymce.dom.Event.add(editButton, 'mousedown', function(e) {
</span><ins>+                                var ed = tinyMCE.activeEditor;
</ins><span class="cx">                                 ed.windowManager.bookmark = ed.selection.getBookmark('simple');
</span><span class="cx">                                 ed.execCommand(&quot;WP_Gallery&quot;);
</span><span class="cx">                         });
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpgalleryeditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){tinymce.create(&quot;tinymce.plugins.wpGallery&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_Gallery&quot;,function(){var h=a.selection.getNode(),f,e=tinymce.DOM.getViewPort(),g=e.h-80,d=(640&lt;e.w)?640:e.w;if(h.nodeName!=&quot;IMG&quot;){return}if(a.dom.getAttrib(h,&quot;class&quot;).indexOf(&quot;wpGallery&quot;)==-1){return}f=tinymce.DOM.get(&quot;post_ID&quot;).value;tb_show(&quot;&quot;,tinymce.documentBaseURL+&quot;/media-upload.php?post_id=&quot;+f+&quot;&amp;tab=gallery&amp;TB_iframe=true&amp;width=&quot;+d+&quot;&amp;height=&quot;+g);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onMouseDown.add(function(d,f){if(f.target.nodeName!=&quot;IMG&quot;){d.plugins.wordpress._hideButtons()}else{if(d.dom.hasClass(f.target,&quot;wpGallery&quot;)){d.plugins.wordpress._showButtons(f.target,&quot;wp_gallerybtns&quot;)}}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_gallery(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_gallery(e.content)}})},_do_gallery:function(a){return a.replace(/\[gallery([^\]]*)\]/g,function(d,c){return'&lt;img src=&quot;'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif&quot; class=&quot;wpGallery mceItem&quot; title=&quot;gallery'+tinymce.DOM.encode(c)+'&quot; /&gt;'})},_get_gallery:function(b){function a(c,d){d=new RegExp(d+'=&quot;([^&quot;]+)&quot;',&quot;g&quot;).exec(c);return d?tinymce.DOM.decode(d[1]):&quot;&quot;}return b.replace(/(?:&lt;p[^&gt;]*&gt;)*(&lt;img[^&gt;]+&gt;)(?:&lt;\/p&gt;)*/g,function(e,d){var c=a(d,&quot;class&quot;);if(c.indexOf(&quot;wpGallery&quot;)!=-1){return&quot;&lt;p&gt;[&quot;+tinymce.trim(a(d,&quot;title&quot;))+&quot;]&lt;/p&gt;&quot;}return e})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_gallerybtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_gallerybtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/edit.png&quot;,id:&quot;wp_editgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.editgallery&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(f){a.windowManager.bookmark=a.selection.getBookmark(&quot;simple&quot;);a.execCommand(&quot;WP_Gallery&quot;)});c=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.delgallery&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(h){var f=tinyMCE.activeEditor,g=f.selection.getNode();if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.hasClass(g,&quot;wpGallery&quot;)){f.dom.remove(g);f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Gallery Settings&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpgallery&quot;,tinymce.plugins.wpGallery)})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(){tinymce.create(&quot;tinymce.plugins.wpGallery&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_Gallery&quot;,function(){var h=a.selection.getNode(),f,e=tinymce.DOM.getViewPort(),g=e.h-80,d=(640&lt;e.w)?640:e.w;if(h.nodeName!=&quot;IMG&quot;){return}if(a.dom.getAttrib(h,&quot;class&quot;).indexOf(&quot;wpGallery&quot;)==-1){return}f=tinymce.DOM.get(&quot;post_ID&quot;).value;tb_show(&quot;&quot;,tinymce.documentBaseURL+&quot;/media-upload.php?post_id=&quot;+f+&quot;&amp;tab=gallery&amp;TB_iframe=true&amp;width=&quot;+d+&quot;&amp;height=&quot;+g);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onMouseDown.add(function(d,f){if(f.target.nodeName!=&quot;IMG&quot;){d.plugins.wordpress._hideButtons()}else{if(d.dom.hasClass(f.target,&quot;wpGallery&quot;)){d.plugins.wordpress._showButtons(f.target,&quot;wp_gallerybtns&quot;)}}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_gallery(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_gallery(e.content)}})},_do_gallery:function(a){return a.replace(/\[gallery([^\]]*)\]/g,function(d,c){return'&lt;img src=&quot;'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif&quot; class=&quot;wpGallery mceItem&quot; title=&quot;gallery'+tinymce.DOM.encode(c)+'&quot; /&gt;'})},_get_gallery:function(b){function a(c,d){d=new RegExp(d+'=&quot;([^&quot;]+)&quot;',&quot;g&quot;).exec(c);return d?tinymce.DOM.decode(d[1]):&quot;&quot;}return b.replace(/(?:&lt;p[^&gt;]*&gt;)*(&lt;img[^&gt;]+&gt;)(?:&lt;\/p&gt;)*/g,function(e,d){var c=a(d,&quot;class&quot;);if(c.indexOf(&quot;wpGallery&quot;)!=-1){return&quot;&lt;p&gt;[&quot;+tinymce.trim(a(d,&quot;title&quot;))+&quot;]&lt;/p&gt;&quot;}return e})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_gallerybtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_gallerybtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/edit.png&quot;,id:&quot;wp_editgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.editgallery&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(g){var f=tinyMCE.activeEditor;f.windowManager.bookmark=f.selection.getBookmark(&quot;simple&quot;);f.execCommand(&quot;WP_Gallery&quot;)});c=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.delgallery&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(h){var f=tinyMCE.activeEditor,g=f.selection.getNode();if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.hasClass(g,&quot;wpGallery&quot;)){f.dom.remove(g);f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Gallery Settings&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpgallery&quot;,tinymce.plugins.wpGallery)})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcewptinymcejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/wp-tinymce.js (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/wp-tinymce.js        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-includes/js/tinymce/wp-tinymce.js        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -19,10 +19,10 @@
</span><span class="cx"> // plugins/tabfocus
</span><span class="cx"> (function(){var c=tinymce.DOM,a=tinymce.dom.Event,d=tinymce.each,b=tinymce.explode;tinymce.create(&quot;tinymce.plugins.TabFocusPlugin&quot;,{init:function(f,g){function e(i,j){if(j.keyCode===9){return a.cancel(j)}}function h(l,p){var j,m,o,n,k;function q(i){o=c.getParent(l.id,&quot;form&quot;);n=o.elements;if(o){d(n,function(s,r){if(s.id==l.id){j=r;return false}});if(i&gt;0){for(m=j+1;m&lt;n.length;m++){if(n[m].type!=&quot;hidden&quot;){return n[m]}}}else{for(m=j-1;m&gt;=0;m--){if(n[m].type!=&quot;hidden&quot;){return n[m]}}}}return null}if(p.keyCode===9){k=b(l.getParam(&quot;tab_focus&quot;,l.getParam(&quot;tabfocus_elements&quot;,&quot;:prev,:next&quot;)));if(k.length==1){k[1]=k[0];k[0]=&quot;:prev&quot;}if(p.shiftKey){if(k[0]==&quot;:prev&quot;){n=q(-1)}else{n=c.get(k[0])}}else{if(k[1]==&quot;:next&quot;){n=q(1)}else{n=c.get(k[1])}}if(n){if(l=tinymce.EditorManager.get(n.id||n.name)){l.focus()}else{window.setTimeout(function(){window.focus();n.focus()},10)}return a.cancel(p)}}}f.onKeyUp.add(e);if(tinymce.isGecko){f.onKeyPress.add(h);f.onKeyDown.add(e)}else{f.onKeyDown.add(h)}f.onInit.add(function(){d(c.select(&quot;a:first,a:last&quot;,f.getContainer()),function(i){a.add(i,&quot;focus&quot;,function(){f.focus()})})})},getInfo:function(){return{longname:&quot;Tabfocus&quot;,author:&quot;Moxiecode Systems AB&quot;,authorurl:&quot;http://tinymce.moxiecode.com&quot;,infourl:&quot;http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus&quot;,version:tinymce.majorVersion+&quot;.&quot;+tinymce.minorVersion}}});tinymce.PluginManager.add(&quot;tabfocus&quot;,tinymce.plugins.TabFocusPlugin)})();
</span><span class="cx"> // plugins/wordpress
</span><del>-(function(){var a=tinymce.DOM;tinymce.create(&quot;tinymce.plugins.WordPress&quot;,{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&quot;,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;,image:d+&quot;/img/more.gif&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;,image:d+&quot;/img/help.gif&quot;,cmd:&quot;WP_Help&quot;});c.addButton(&quot;wp_adv&quot;,{title:&quot;wordpress.wp_adv_desc&quot;,image:d+&quot;/img/toolbars.gif&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(i,l,k,m){var j=tinymce.DOM;if(&quot;mceFullScreen&quot;!=l){return}if(&quot;mce_fullscreen&quot;!=i.id&amp;&amp;j.get(&quot;add_audio&quot;)&amp;&amp;j.get(&quot;add_video&quot;)&amp;&amp;j.get(&quot;add_image&quot;)&amp;&amp;j.get(&quot;add_media&quot;)){i.settings.theme_advanced_buttons1+=&quot;,|,add_image,add_video,add_audio,add_media&quot;}});c.addCommand(&quot;JustifyLeft&quot;,function(){var i=c.selection.getNode();if(i.nodeName!=&quot;IMG&quot;){c.editorCommands.mceJustify(&quot;JustifyLeft&quot;,&quot;left&quot;)}else{c.plugins.wordpress.do_align(i,&quot;alignleft&quot;)}});c.addCommand(&quot;JustifyRight&quot;,function(){var i=c.selection.getNode();if(i.nodeName!=&quot;IMG&quot;){c.editorCommands.mceJustify(&quot;JustifyRight&quot;,&quot;right&quot;)}else{c.plugins.wordpress.do_align(i,&quot;alignright&quot;)}});c.addCommand(&quot;JustifyCenter&quot;,function(){var k=c.selection.getNode(),j=c.dom.getParent(k,&quot;p&quot;),i=c.dom.getParent(k,&quot;dl&quot;);if(k.nodeName==&quot;IMG&quot;&amp;&amp;(j||i)){c.plugins.wordpress.do_align(k,&quot;aligncenter&quot;)}else{c.editorCommands.mceJustify(&quot;JustifyCenter&quot;,&quot;center&quot;)}});if(&quot;undefined&quot;!=typeof wpWordCount){c.onKeyUp.add(function(i,j){if(j.keyCode==g){return}if(13==j.keyCode||8==g||46==g){wpWordCount.wc(i.getContent({format:&quot;raw&quot;}))}g=j.keyCode})}c.onSaveContent.add(function(i,j){if(typeof(switchEditors)==&quot;object&quot;){if(i.isHidden()){j.content=j.element.value}else{j.content=switchEditors.pre_wpautop(j.content)}}});c.onBeforeSetContent.add(function(i,j){j.content=e._setEmbed(j.content)});c.onPostProcess.add(function(i,j){if(j.get){j.content=e._getEmbed(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){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()})},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 k=this,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;});k.tout=window.setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){tinymce.DOM.hide([&quot;wp_editbtns&quot;,&quot;wp_gallerybtns&quot;]);if(this.tout){window.clearTimeout(this.tout)}},do_align:function(j,d){var h,f,g,b,i,e=tinyMCE.activeEditor;if(/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(j.className)){return}h=e.dom.getParent(j,&quot;p&quot;);f=e.dom.getParent(j,&quot;dl&quot;);g=e.dom.getParent(j,&quot;div&quot;);if(f&amp;&amp;g){b=e.dom.hasClass(f,d)?&quot;alignnone&quot;:d;f.className=f.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);e.dom.addClass(f,b);i=(b==&quot;aligncenter&quot;)?e.dom.addClass(g,&quot;mceIEcenter&quot;):e.dom.removeClass(g,&quot;mceIEcenter&quot;)}else{if(h){b=e.dom.hasClass(j,d)?&quot;alignnone&quot;:d;j.className=j.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);e.dom.addClass(j,b);if(b==&quot;aligncenter&quot;){e.dom.setStyle(h,&quot;textAlign&quot;,&quot;center&quot;)}else{if(h.style&amp;&amp;h.style.textAlign==&quot;center&quot;){e.dom.setStyle(h,&quot;textAlign&quot;,&quot;&quot;)}}}}e.execCommand(&quot;mceRepaint&quot;)},_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){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><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&quot;,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;,image:d+&quot;/img/more.gif&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;,image:d+&quot;/img/help.gif&quot;,cmd:&quot;WP_Help&quot;});c.addButton(&quot;wp_adv&quot;,{title:&quot;wordpress.wp_adv_desc&quot;,image:d+&quot;/img/toolbars.gif&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(i,l,k,m){var j=tinymce.DOM;if(&quot;mceFullScreen&quot;!=l){return}if(&quot;mce_fullscreen&quot;!=i.id&amp;&amp;j.get(&quot;add_audio&quot;)&amp;&amp;j.get(&quot;add_video&quot;)&amp;&amp;j.get(&quot;add_image&quot;)&amp;&amp;j.get(&quot;add_media&quot;)){i.settings.theme_advanced_buttons1+=&quot;,|,add_image,add_video,add_audio,add_media&quot;}});c.addCommand(&quot;JustifyLeft&quot;,function(){var i=c.selection.getNode();if(i.nodeName!=&quot;IMG&quot;){c.editorCommands.mceJustify(&quot;JustifyLeft&quot;,&quot;left&quot;)}else{c.plugins.wordpress.do_align(i,&quot;alignleft&quot;)}});c.addCommand(&quot;JustifyRight&quot;,function(){var i=c.selection.getNode();if(i.nodeName!=&quot;IMG&quot;){c.editorCommands.mceJustify(&quot;JustifyRight&quot;,&quot;right&quot;)}else{c.plugins.wordpress.do_align(i,&quot;alignright&quot;)}});c.addCommand(&quot;JustifyCenter&quot;,function(){var k=c.selection.getNode(),j=c.dom.getParent(k,&quot;p&quot;),i=c.dom.getParent(k,&quot;dl&quot;);if(k.nodeName==&quot;IMG&quot;&amp;&amp;(j||i)){c.plugins.wordpress.do_align(k,&quot;aligncenter&quot;)}else{c.editorCommands.mceJustify(&quot;JustifyCenter&quot;,&quot;center&quot;)}});if(&quot;undefined&quot;!=typeof wpWordCount){c.onKeyUp.add(function(i,j){if(j.keyCode==g){return}if(13==j.keyCode||8==g||46==g){wpWordCount.wc(i.getContent({format:&quot;raw&quot;}))}g=j.keyCode})}c.onSaveContent.add(function(i,j){if(typeof(switchEditors)==&quot;object&quot;){if(i.isHidden()){j.content=j.element.value}else{j.content=switchEditors.pre_wpautop(j.content)}}});c.onBeforeSetContent.add(function(i,j){j.content=e._setEmbed(j.content)});c.onPostProcess.add(function(i,j){if(j.get){j.content=e._getEmbed(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){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()})},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;});this.mceTout=setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){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;)}if(this.mceTout){clearTimeout(this.mceTout)}},do_align:function(j,d){var h,f,g,b,i,e=tinyMCE.activeEditor;if(/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(j.className)){return}h=e.dom.getParent(j,&quot;p&quot;);f=e.dom.getParent(j,&quot;dl&quot;);g=e.dom.getParent(j,&quot;div&quot;);if(f&amp;&amp;g){b=e.dom.hasClass(f,d)?&quot;alignnone&quot;:d;f.className=f.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);e.dom.addClass(f,b);i=(b==&quot;aligncenter&quot;)?e.dom.addClass(g,&quot;mceIEcenter&quot;):e.dom.removeClass(g,&quot;mceIEcenter&quot;)}else{if(h){b=e.dom.hasClass(j,d)?&quot;alignnone&quot;:d;j.className=j.className.replace(/align[^ '&quot;]+\s?/g,&quot;&quot;);e.dom.addClass(j,b);if(b==&quot;aligncenter&quot;){e.dom.setStyle(h,&quot;textAlign&quot;,&quot;center&quot;)}else{if(h.style&amp;&amp;h.style.textAlign==&quot;center&quot;){e.dom.setStyle(h,&quot;textAlign&quot;,&quot;&quot;)}}}}e.execCommand(&quot;mceRepaint&quot;)},_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){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"> // plugins/wpeditimage
</span><del>-(function(){tinymce.create(&quot;tinymce.plugins.wpEditImage&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_EditImage&quot;,function(){var h=a.selection.getNode(),f=tinymce.DOM.getViewPort(),g=f.h,d=(720&lt;f.w)?720:f.w,e=a.dom.getAttrib(h,&quot;class&quot;);if(e.indexOf(&quot;mceItem&quot;)!=-1||e.indexOf(&quot;wpGallery&quot;)!=-1||h.nodeName!=&quot;IMG&quot;){return}tb_show(&quot;&quot;,b+&quot;/editimage.html?ver=321&amp;TB_iframe=true&quot;);tinymce.DOM.setStyles(&quot;TB_window&quot;,{width:(d-50)+&quot;px&quot;,height:(g-45)+&quot;px&quot;,&quot;margin-left&quot;:&quot;-&quot;+parseInt(((d-50)/2),10)+&quot;px&quot;});if(!tinymce.isIE6){tinymce.DOM.setStyles(&quot;TB_window&quot;,{top:&quot;20px&quot;,marginTop:&quot;0&quot;})}tinymce.DOM.setStyles(&quot;TB_iframeContent&quot;,{width:(d-50)+&quot;px&quot;,height:(g-75)+&quot;px&quot;});tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onInit.add(function(d){tinymce.dom.Event.add(d.getBody(),&quot;dragstart&quot;,function(f){if(!tinymce.isGecko&amp;&amp;f.target.nodeName==&quot;IMG&quot;&amp;&amp;d.dom.getParent(f.target,&quot;dl.wp-caption&quot;)){return tinymce.dom.Event.cancel(f)}})});a.onMouseUp.add(function(d,f){if(tinymce.isWebKit||tinymce.isOpera){return}if(d.dom.getParent(f.target,&quot;div.mceTemp&quot;)||d.dom.is(f.target,&quot;div.mceTemp&quot;)){window.setTimeout(function(){var e=tinyMCE.activeEditor,h=e.selection.getNode(),g=e.dom.getParent(h,&quot;dl.wp-caption&quot;);if(g&amp;&amp;h.width!=(parseInt(e.dom.getStyle(g,&quot;width&quot;),10)-10)){e.dom.setStyle(g,&quot;width&quot;,parseInt(h.width,10)+10);e.execCommand(&quot;mceRepaint&quot;)}},100)}});a.onMouseDown.add(function(d,g){var f;if(g.target.nodeName!=&quot;IMG&quot;){d.plugins.wordpress._hideButtons()}else{if(d.dom.getAttrib(g.target,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){d.plugins.wordpress._showButtons(g.target,&quot;wp_editbtns&quot;);if(tinymce.isGecko&amp;&amp;(f=d.dom.getParent(g.target,&quot;dl.wp-caption&quot;))&amp;&amp;d.dom.hasClass(f.parentNode,&quot;mceTemp&quot;)){d.selection.select(f.parentNode)}}}});a.onKeyPress.add(function(d,i){var f,h,g;if(i.keyCode==13&amp;&amp;(f=d.dom.getParent(d.selection.getNode(),&quot;DL&quot;))&amp;&amp;d.dom.hasClass(f,&quot;wp-caption&quot;)){g=d.dom.create(&quot;p&quot;,{},&quot;&amp;nbsp;&quot;);if((h=f.parentNode)&amp;&amp;h.nodeName==&quot;DIV&quot;){d.dom.insertAfter(g,h)}else{d.dom.insertAfter(g,f)}if(g.firstChild){d.selection.select(g.firstChild)}else{d.selection.select(g)}tinymce.dom.Event.cancel(i);return false}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_shcode(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_shcode(e.content)}})},_do_shcode:function(a){return a.replace(/\[(?:wp_)?caption([^\]]+)\]([\s\S]+?)\[\/(?:wp_)?caption\][\s\u00a0]*/g,function(g,d,k){var j,f,e,h,i;d=d.replace(/\\'|\\&amp;#39;|\\&amp;#039;/g,&quot;&amp;#39;&quot;).replace(/\\&quot;|\\&amp;quot;/g,&quot;&amp;quot;&quot;);k=k.replace(/\\&amp;#39;|\\&amp;#039;/g,&quot;&amp;#39;&quot;).replace(/\\&amp;quot;/g,&quot;&amp;quot;&quot;);j=d.match(/id=['&quot;]([^'&quot;]+)/i);f=d.match(/align=['&quot;]([^'&quot;]+)/i);e=d.match(/width=['&quot;]([0-9]+)/);h=d.match(/caption=['&quot;]([^'&quot;]+)/i);j=(j&amp;&amp;j[1])?j[1]:&quot;&quot;;f=(f&amp;&amp;f[1])?f[1]:&quot;alignnone&quot;;e=(e&amp;&amp;e[1])?e[1]:&quot;&quot;;h=(h&amp;&amp;h[1])?h[1]:&quot;&quot;;if(!e||!h){return k}i=(f==&quot;aligncenter&quot;)?&quot;mceTemp mceIEcenter&quot;:&quot;mceTemp&quot;;return'&lt;div class=&quot;'+i+'&quot; draggable&gt;&lt;dl id=&quot;'+j+'&quot; class=&quot;wp-caption '+f+'&quot; style=&quot;width: '+(10+parseInt(e))+'px&quot;&gt;&lt;dt class=&quot;wp-caption-dt&quot;&gt;'+k+'&lt;/dt&gt;&lt;dd class=&quot;wp-caption-dd&quot;&gt;'+h+&quot;&lt;/dd&gt;&lt;/dl&gt;&lt;/div&gt;&quot;})},_get_shcode:function(a){return a.replace(/&lt;div class=&quot;mceTemp[^&quot;]*&quot;&gt;\s*&lt;dl([^&gt;]+)&gt;\s*&lt;dt[^&gt;]+&gt;([\s\S]+?)&lt;\/dt&gt;\s*&lt;dd[^&gt;]+&gt;(.+?)&lt;\/dd&gt;\s*&lt;\/dl&gt;\s*&lt;\/div&gt;\s*/gi,function(g,d,j,h){var i,f,e;i=d.match(/id=['&quot;]([^'&quot;]+)/i);f=d.match(/class=['&quot;]([^'&quot;]+)/i);e=j.match(/width=['&quot;]([0-9]+)/);i=(i&amp;&amp;i[1])?i[1]:&quot;&quot;;f=(f&amp;&amp;f[1])?f[1]:&quot;alignnone&quot;;e=(e&amp;&amp;e[1])?e[1]:&quot;&quot;;if(!e||!h){return j}f=f.match(/align[^ '&quot;]+/)||&quot;alignnone&quot;;h=h.replace(/&lt;\S[^&lt;&gt;]*&gt;/gi,&quot;&quot;).replace(/'/g,&quot;&amp;#39;&quot;).replace(/&quot;/g,&quot;&amp;quot;&quot;);return'[caption id=&quot;'+i+'&quot; align=&quot;'+f+'&quot; width=&quot;'+e+'&quot; caption=&quot;'+h+'&quot;]'+j+&quot;[/caption]&quot;})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_editbtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_editbtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/image.png&quot;,id:&quot;wp_editimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wpeditimage.edit_img&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(f){a.windowManager.bookmark=a.selection.getBookmark(&quot;simple&quot;);a.execCommand(&quot;WP_EditImage&quot;)});c=d.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wpeditimage.del_img&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(i){var f=tinyMCE.activeEditor,g=f.selection.getNode(),h;if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.getAttrib(g,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){if((h=f.dom.getParent(g,&quot;div&quot;))&amp;&amp;f.dom.hasClass(h,&quot;mceTemp&quot;)){f.dom.remove(h)}else{if((h=f.dom.getParent(g,&quot;A&quot;))&amp;&amp;h.childNodes.length==1){f.dom.remove(h)}else{f.dom.remove(g)}}f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Edit Image&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpeditimage&quot;,tinymce.plugins.wpEditImage)})();
</del><ins>+(function(){tinymce.create(&quot;tinymce.plugins.wpEditImage&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_EditImage&quot;,function(){var h=a.selection.getNode(),f=tinymce.DOM.getViewPort(),g=f.h,d=(720&lt;f.w)?720:f.w,e=a.dom.getAttrib(h,&quot;class&quot;);if(e.indexOf(&quot;mceItem&quot;)!=-1||e.indexOf(&quot;wpGallery&quot;)!=-1||h.nodeName!=&quot;IMG&quot;){return}tb_show(&quot;&quot;,b+&quot;/editimage.html?ver=321&amp;TB_iframe=true&quot;);tinymce.DOM.setStyles(&quot;TB_window&quot;,{width:(d-50)+&quot;px&quot;,height:(g-45)+&quot;px&quot;,&quot;margin-left&quot;:&quot;-&quot;+parseInt(((d-50)/2),10)+&quot;px&quot;});if(!tinymce.isIE6){tinymce.DOM.setStyles(&quot;TB_window&quot;,{top:&quot;20px&quot;,marginTop:&quot;0&quot;})}tinymce.DOM.setStyles(&quot;TB_iframeContent&quot;,{width:(d-50)+&quot;px&quot;,height:(g-75)+&quot;px&quot;});tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onInit.add(function(d){tinymce.dom.Event.add(d.getBody(),&quot;dragstart&quot;,function(f){if(!tinymce.isGecko&amp;&amp;f.target.nodeName==&quot;IMG&quot;&amp;&amp;d.dom.getParent(f.target,&quot;dl.wp-caption&quot;)){return tinymce.dom.Event.cancel(f)}})});a.onMouseUp.add(function(d,f){if(tinymce.isWebKit||tinymce.isOpera){return}if(d.dom.getParent(f.target,&quot;div.mceTemp&quot;)||d.dom.is(f.target,&quot;div.mceTemp&quot;)){window.setTimeout(function(){var e=tinyMCE.activeEditor,h=e.selection.getNode(),g=e.dom.getParent(h,&quot;dl.wp-caption&quot;);if(g&amp;&amp;h.width!=(parseInt(e.dom.getStyle(g,&quot;width&quot;),10)-10)){e.dom.setStyle(g,&quot;width&quot;,parseInt(h.width,10)+10);e.execCommand(&quot;mceRepaint&quot;)}},100)}});a.onMouseDown.add(function(d,g){var f;if(g.target.nodeName!=&quot;IMG&quot;){d.plugins.wordpress._hideButtons()}else{if(d.dom.getAttrib(g.target,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){d.plugins.wordpress._showButtons(g.target,&quot;wp_editbtns&quot;);if(tinymce.isGecko&amp;&amp;(f=d.dom.getParent(g.target,&quot;dl.wp-caption&quot;))&amp;&amp;d.dom.hasClass(f.parentNode,&quot;mceTemp&quot;)){d.selection.select(f.parentNode)}}}});a.onKeyPress.add(function(d,i){var f,h,g;if(i.keyCode==13&amp;&amp;(f=d.dom.getParent(d.selection.getNode(),&quot;DL&quot;))&amp;&amp;d.dom.hasClass(f,&quot;wp-caption&quot;)){g=d.dom.create(&quot;p&quot;,{},&quot;&amp;nbsp;&quot;);if((h=f.parentNode)&amp;&amp;h.nodeName==&quot;DIV&quot;){d.dom.insertAfter(g,h)}else{d.dom.insertAfter(g,f)}if(g.firstChild){d.selection.select(g.firstChild)}else{d.selection.select(g)}tinymce.dom.Event.cancel(i);return false}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_shcode(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_shcode(e.content)}})},_do_shcode:function(a){return a.replace(/\[(?:wp_)?caption([^\]]+)\]([\s\S]+?)\[\/(?:wp_)?caption\][\s\u00a0]*/g,function(g,d,k){var j,f,e,h,i;d=d.replace(/\\'|\\&amp;#39;|\\&amp;#039;/g,&quot;&amp;#39;&quot;).replace(/\\&quot;|\\&amp;quot;/g,&quot;&amp;quot;&quot;);k=k.replace(/\\&amp;#39;|\\&amp;#039;/g,&quot;&amp;#39;&quot;).replace(/\\&amp;quot;/g,&quot;&amp;quot;&quot;);j=d.match(/id=['&quot;]([^'&quot;]+)/i);f=d.match(/align=['&quot;]([^'&quot;]+)/i);e=d.match(/width=['&quot;]([0-9]+)/);h=d.match(/caption=['&quot;]([^'&quot;]+)/i);j=(j&amp;&amp;j[1])?j[1]:&quot;&quot;;f=(f&amp;&amp;f[1])?f[1]:&quot;alignnone&quot;;e=(e&amp;&amp;e[1])?e[1]:&quot;&quot;;h=(h&amp;&amp;h[1])?h[1]:&quot;&quot;;if(!e||!h){return k}i=(f==&quot;aligncenter&quot;)?&quot;mceTemp mceIEcenter&quot;:&quot;mceTemp&quot;;return'&lt;div class=&quot;'+i+'&quot; draggable&gt;&lt;dl id=&quot;'+j+'&quot; class=&quot;wp-caption '+f+'&quot; style=&quot;width: '+(10+parseInt(e))+'px&quot;&gt;&lt;dt class=&quot;wp-caption-dt&quot;&gt;'+k+'&lt;/dt&gt;&lt;dd class=&quot;wp-caption-dd&quot;&gt;'+h+&quot;&lt;/dd&gt;&lt;/dl&gt;&lt;/div&gt;&quot;})},_get_shcode:function(a){return a.replace(/&lt;div class=&quot;mceTemp[^&quot;]*&quot;&gt;\s*&lt;dl([^&gt;]+)&gt;\s*&lt;dt[^&gt;]+&gt;([\s\S]+?)&lt;\/dt&gt;\s*&lt;dd[^&gt;]+&gt;(.+?)&lt;\/dd&gt;\s*&lt;\/dl&gt;\s*&lt;\/div&gt;\s*/gi,function(g,d,j,h){var i,f,e;i=d.match(/id=['&quot;]([^'&quot;]+)/i);f=d.match(/class=['&quot;]([^'&quot;]+)/i);e=j.match(/width=['&quot;]([0-9]+)/);i=(i&amp;&amp;i[1])?i[1]:&quot;&quot;;f=(f&amp;&amp;f[1])?f[1]:&quot;alignnone&quot;;e=(e&amp;&amp;e[1])?e[1]:&quot;&quot;;if(!e||!h){return j}f=f.match(/align[^ '&quot;]+/)||&quot;alignnone&quot;;h=h.replace(/&lt;\S[^&lt;&gt;]*&gt;/gi,&quot;&quot;).replace(/'/g,&quot;&amp;#39;&quot;).replace(/&quot;/g,&quot;&amp;quot;&quot;);return'[caption id=&quot;'+i+'&quot; align=&quot;'+f+'&quot; width=&quot;'+e+'&quot; caption=&quot;'+h+'&quot;]'+j+&quot;[/caption]&quot;})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_editbtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_editbtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/image.png&quot;,id:&quot;wp_editimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wpeditimage.edit_img&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(g){var f=tinyMCE.activeEditor;f.windowManager.bookmark=f.selection.getBookmark(&quot;simple&quot;);f.execCommand(&quot;WP_EditImage&quot;)});c=d.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wpeditimage.del_img&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(i){var f=tinyMCE.activeEditor,g=f.selection.getNode(),h;if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.getAttrib(g,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){if((h=f.dom.getParent(g,&quot;div&quot;))&amp;&amp;f.dom.hasClass(h,&quot;mceTemp&quot;)){f.dom.remove(h)}else{if((h=f.dom.getParent(g,&quot;A&quot;))&amp;&amp;h.childNodes.length==1){f.dom.remove(h)}else{f.dom.remove(g)}}f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Edit Image&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpeditimage&quot;,tinymce.plugins.wpEditImage)})();
</ins><span class="cx"> // plugins/wpgallery
</span><del>-(function(){tinymce.create(&quot;tinymce.plugins.wpGallery&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_Gallery&quot;,function(){var h=a.selection.getNode(),f,e=tinymce.DOM.getViewPort(),g=e.h-80,d=(640&lt;e.w)?640:e.w;if(h.nodeName!=&quot;IMG&quot;){return}if(a.dom.getAttrib(h,&quot;class&quot;).indexOf(&quot;wpGallery&quot;)==-1){return}f=tinymce.DOM.get(&quot;post_ID&quot;).value;tb_show(&quot;&quot;,tinymce.documentBaseURL+&quot;/media-upload.php?post_id=&quot;+f+&quot;&amp;tab=gallery&amp;TB_iframe=true&amp;width=&quot;+d+&quot;&amp;height=&quot;+g);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onMouseDown.add(function(d,f){if(f.target.nodeName!=&quot;IMG&quot;){d.plugins.wordpress._hideButtons()}else{if(d.dom.hasClass(f.target,&quot;wpGallery&quot;)){d.plugins.wordpress._showButtons(f.target,&quot;wp_gallerybtns&quot;)}}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_gallery(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_gallery(e.content)}})},_do_gallery:function(a){return a.replace(/\[gallery([^\]]*)\]/g,function(d,c){return'&lt;img src=&quot;'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif&quot; class=&quot;wpGallery mceItem&quot; title=&quot;gallery'+tinymce.DOM.encode(c)+'&quot; /&gt;'})},_get_gallery:function(b){function a(c,d){d=new RegExp(d+'=&quot;([^&quot;]+)&quot;',&quot;g&quot;).exec(c);return d?tinymce.DOM.decode(d[1]):&quot;&quot;}return b.replace(/(?:&lt;p[^&gt;]*&gt;)*(&lt;img[^&gt;]+&gt;)(?:&lt;\/p&gt;)*/g,function(e,d){var c=a(d,&quot;class&quot;);if(c.indexOf(&quot;wpGallery&quot;)!=-1){return&quot;&lt;p&gt;[&quot;+tinymce.trim(a(d,&quot;title&quot;))+&quot;]&lt;/p&gt;&quot;}return e})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_gallerybtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_gallerybtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/edit.png&quot;,id:&quot;wp_editgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.editgallery&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(f){a.windowManager.bookmark=a.selection.getBookmark(&quot;simple&quot;);a.execCommand(&quot;WP_Gallery&quot;)});c=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.delgallery&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(h){var f=tinyMCE.activeEditor,g=f.selection.getNode();if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.hasClass(g,&quot;wpGallery&quot;)){f.dom.remove(g);f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Gallery Settings&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpgallery&quot;,tinymce.plugins.wpGallery)})();
</del><ins>+(function(){tinymce.create(&quot;tinymce.plugins.wpGallery&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_Gallery&quot;,function(){var h=a.selection.getNode(),f,e=tinymce.DOM.getViewPort(),g=e.h-80,d=(640&lt;e.w)?640:e.w;if(h.nodeName!=&quot;IMG&quot;){return}if(a.dom.getAttrib(h,&quot;class&quot;).indexOf(&quot;wpGallery&quot;)==-1){return}f=tinymce.DOM.get(&quot;post_ID&quot;).value;tb_show(&quot;&quot;,tinymce.documentBaseURL+&quot;/media-upload.php?post_id=&quot;+f+&quot;&amp;tab=gallery&amp;TB_iframe=true&amp;width=&quot;+d+&quot;&amp;height=&quot;+g);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onMouseDown.add(function(d,f){if(f.target.nodeName!=&quot;IMG&quot;){d.plugins.wordpress._hideButtons()}else{if(d.dom.hasClass(f.target,&quot;wpGallery&quot;)){d.plugins.wordpress._showButtons(f.target,&quot;wp_gallerybtns&quot;)}}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_gallery(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_gallery(e.content)}})},_do_gallery:function(a){return a.replace(/\[gallery([^\]]*)\]/g,function(d,c){return'&lt;img src=&quot;'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif&quot; class=&quot;wpGallery mceItem&quot; title=&quot;gallery'+tinymce.DOM.encode(c)+'&quot; /&gt;'})},_get_gallery:function(b){function a(c,d){d=new RegExp(d+'=&quot;([^&quot;]+)&quot;',&quot;g&quot;).exec(c);return d?tinymce.DOM.decode(d[1]):&quot;&quot;}return b.replace(/(?:&lt;p[^&gt;]*&gt;)*(&lt;img[^&gt;]+&gt;)(?:&lt;\/p&gt;)*/g,function(e,d){var c=a(d,&quot;class&quot;);if(c.indexOf(&quot;wpGallery&quot;)!=-1){return&quot;&lt;p&gt;[&quot;+tinymce.trim(a(d,&quot;title&quot;))+&quot;]&lt;/p&gt;&quot;}return e})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_gallerybtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_gallerybtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/edit.png&quot;,id:&quot;wp_editgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.editgallery&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(g){var f=tinyMCE.activeEditor;f.windowManager.bookmark=f.selection.getBookmark(&quot;simple&quot;);f.execCommand(&quot;WP_Gallery&quot;)});c=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.delgallery&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(h){var f=tinyMCE.activeEditor,g=f.selection.getNode();if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.hasClass(g,&quot;wpGallery&quot;)){f.dom.remove(g);f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Gallery Settings&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpgallery&quot;,tinymce.plugins.wpGallery)})();
</ins><span class="cx"> // mark as loaded
</span><span class="cx"> tinyMCEPreInit.go=function(){var b=this,a=tinymce.ScriptLoader,f=b.mceInit.language,e=b.mceInit.theme,c=b.mceInit.plugins,d=b.suffix;a.markDone(b.base+&quot;/langs/&quot;+f+&quot;.js&quot;);a.markDone(b.base+&quot;/themes/&quot;+e+&quot;/editor_template&quot;+d+&quot;.js&quot;);a.markDone(b.base+&quot;/themes/&quot;+e+&quot;/langs/&quot;+f+&quot;.js&quot;);a.markDone(b.base+&quot;/themes/&quot;+e+&quot;/langs/&quot;+f+&quot;_dlg.js&quot;);tinymce.each(c.split(&quot;,&quot;),function(g){if(g&amp;&amp;g.charAt(0)!=&quot;-&quot;){a.markDone(b.base+&quot;/plugins/&quot;+g+&quot;/editor_plugin&quot;+d+&quot;.js&quot;);a.markDone(b.base+&quot;/plugins/&quot;+g+&quot;/langs/&quot;+f+&quot;.js&quot;);a.markDone(b.base+&quot;/plugins/&quot;+g+&quot;/langs/&quot;+f+&quot;_dlg.js&quot;)}})};
</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="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (12111 => 12112)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2009-10-26 18:02:44 UTC (rev 12111)
+++ trunk/wp-includes/version.php        2009-10-27 00:23:58 UTC (rev 12112)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global string $tinymce_version
</span><span class="cx">  */
</span><del>-$tinymce_version = '327-1235b';
</del><ins>+$tinymce_version = '327-1235c';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the cache manifest version
</span></span></pre>
</div>
</div>

</body>
</html>