<!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, #msg p { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul { 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>[11982] trunk: Press This: editor fixes and CSS tweaks for IE6/7</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/11982">11982</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2009-09-29 09:46:13 +0000 (Tue, 29 Sep 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Press This: editor fixes and CSS tweaks for IE6/7</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="#trunkwpadminincludespostphp">trunk/wp-admin/includes/post.php</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="#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>

<h3>Removed Paths</h3>
<ul>
<li>trunk/wp-includes/js/tinymce/plugins/wordpress/js/</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 (11981 => 11982)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/press-this.css        2009-09-28 22:32:27 UTC (rev 11981)
+++ trunk/wp-admin/css/press-this.css        2009-09-29 09:46:13 UTC (rev 11982)
</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;}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{padding-left:10px;margin-top:10px;}div.zerosize{border:0 none;height:0;margin:0;overflow:hidden;padding:0;position:absolute;width:0;}#poststuff #edButtonPreview.active,#poststuff #edButtonHTML.active{display:none;}.posting{margin-right:228px;position:relative;left:0;}#side-info-column{float:right;width:218px;position:absolute;right:0;margin-right:10px;}#side-info-column .sleeve{padding-top:5px;padding-left:10px;}#poststuff .inside{font-size:11px;margin:0 12px 12px;}#poststuff h2,#poststuff h3{font-size:12px;font-weight:bold;line-height:1;margin:0 0 10px;padding:7px 9px;}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;}#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:98%;}.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{position:relative;padding-top:25px;}#actions{clear:both;float:right;margin-top:-19px;position:relative;}#extra_fields #actions{clear:both;position:relative;right:0;margin:-24px 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;}#extra_fields .postbox{margin-bottom:5px;}#extra_fields .titlewrap{padding:0;overflow:auto;height:100px;}#img_container{position:relative;}#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 0;font-size:10px;clear:both;}#viewsite .button{margin:0;display:block;}.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;}.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{width:96%!important;margin-left:1%;margin-bottom:10px;border:0 none;height:365px;}#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;}
</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;}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;position:absolute;width:0;}#poststuff #edButtonPreview.active,#poststuff #edButtonHTML.active{display:none;}.posting{margin-right:212px;position:relative;left:0;}* html .posting{width:470px;}#side-info-column{float:right;width:200px;}#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;}#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{position:relative;padding-top:25px;}#actions{float:right;margin:-19px 0 0;}#extra_fields #actions{clear:both;position:relative;right:0;margin:-24px 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;}#extra_fields .postbox{margin-bottom:5px;}#extra_fields .titlewrap{padding:0;overflow:auto;height:100px;}#img_container{position:relative;}#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 0;font-size:10px;clear:both;}#viewsite .button{margin:0;display:block;}.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;}.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;}
</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 (11981 => 11982)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/press-this.dev.css        2009-09-28 22:32:27 UTC (rev 11981)
+++ trunk/wp-admin/css/press-this.dev.css        2009-09-29 09:46:13 UTC (rev 11982)
</span><span class="lines">@@ -65,8 +65,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* Editor/Main Column */
</span><span class="cx"> div#poststuff {
</span><del>-        padding-left: 10px;
-        margin-top: 10px;
</del><ins>+        margin: 10px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> div.zerosize {
</span><span class="lines">@@ -85,37 +84,42 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .posting {
</span><del>-        margin-right: 228px;
</del><ins>+        margin-right: 212px;
</ins><span class="cx">         position: relative;
</span><span class="cx">         left: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+* html .posting {
+        width: 470px;
+}
+
</ins><span class="cx"> #side-info-column {
</span><span class="cx">         float: right;
</span><del>-        width: 218px;
-        position: absolute;
-        right: 0;
-        margin-right: 10px;
</del><ins>+        width: 200px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #side-info-column .sleeve {
</span><span class="cx">         padding-top: 5px;
</span><del>-        padding-left: 10px;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #poststuff .inside {
</span><span class="cx">         font-size: 11px;
</span><del>-        margin: 0 12px 12px;
</del><ins>+        margin: 8px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #poststuff h2, #poststuff h3 {
</span><span class="cx">         font-size: 12px;
</span><span class="cx">         font-weight: bold;
</span><span class="cx">         line-height: 1;
</span><del>-        margin: 0 0 10px;
</del><ins>+        margin: 0;
</ins><span class="cx">         padding: 7px 9px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#tagsdiv-post_tag h3,
+#categorydiv h3 {
+        cursor: pointer;
+}
+
</ins><span class="cx"> h3.tb {
</span><span class="cx">         text-shadow: 0 1px 0 #fff;
</span><span class="cx">         font-weight: bold;
</span><span class="lines">@@ -163,7 +167,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #title {
</span><del>-        width: 98%;
</del><ins>+        width: 97%;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .editor-container {
</span><span class="lines">@@ -181,10 +185,8 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #actions {
</span><del>-        clear: both;
</del><span class="cx">         float: right;
</span><del>-        margin-top: -19px;
-        position: relative;
</del><ins>+        margin: -19px 0 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #extra_fields #actions {
</span><span class="lines">@@ -412,11 +414,11 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #content {
</span><del>-        width: 96% !important;
-        margin-left: 1%;
-        margin-bottom: 10px;
</del><ins>+        margin: 5px 0;
+        padding: 0 5px;
</ins><span class="cx">         border: 0 none;
</span><span class="cx">         height: 365px;
</span><ins>+        width: 97% !important;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /* Submit */
</span></span></pre></div>
<a id="trunkwpadminincludespostphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/post.php (11981 => 11982)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/post.php        2009-09-28 22:32:27 UTC (rev 11981)
+++ trunk/wp-admin/includes/post.php        2009-09-29 09:46:13 UTC (rev 11982)
</span><span class="lines">@@ -1216,8 +1216,9 @@
</span><span class="cx">  * to the URL when queueing them with the mce_external_plugins filter.
</span><span class="cx">  *
</span><span class="cx">  * @param bool $teeny optional Output a trimmed down version used in Press This.
</span><ins>+ * @param mixed $settings optional An array that can add to or overwrite the default TinyMCE settings.
</ins><span class="cx">  */
</span><del>-function wp_tiny_mce( $teeny = false ) {
</del><ins>+function wp_tiny_mce( $teeny = false, $settings = false ) {
</ins><span class="cx">         global $concatenate_scripts, $compress_scripts, $tinymce_version;
</span><span class="cx"> 
</span><span class="cx">         if ( ! user_can_richedit() )
</span><span class="lines">@@ -1236,7 +1237,7 @@
</span><span class="cx">         $mce_spellchecker_languages = apply_filters('mce_spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv');
</span><span class="cx"> 
</span><span class="cx">         if ( $teeny ) {
</span><del>-                $plugins = apply_filters( 'teeny_mce_plugins', array('safari', 'inlinepopups', 'media', 'autosave', 'fullscreen') );
</del><ins>+                $plugins = apply_filters( 'teeny_mce_plugins', array('safari', 'inlinepopups', 'media', 'fullscreen', 'wordpress') );
</ins><span class="cx">                 $ext_plugins = '';
</span><span class="cx">         } else {
</span><span class="cx">                 $plugins = array( 'safari', 'inlinepopups', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen', 'wpeditimage', 'wpgallery', 'tabfocus' );
</span><span class="lines">@@ -1382,6 +1383,9 @@
</span><span class="cx">         if ( ! empty($mce_css) )
</span><span class="cx">                 $initArray['content_css'] = &quot;$mce_css&quot;;
</span><span class="cx"> 
</span><ins>+        if ( is_array($settings) )
+                $initArray = array_merge($initArray, $settings);
+
</ins><span class="cx">         // For people who really REALLY know what they're doing with TinyMCE
</span><span class="cx">         // You can modify initArray to add, remove, change elements of the config before tinyMCE.init
</span><span class="cx">         // Setting &quot;valid_elements&quot;, &quot;invalid_elements&quot; and &quot;extended_valid_elements&quot; can be done through &quot;tiny_mce_before_init&quot;.
</span></span></pre></div>
<a id="trunkwpadminpressthisphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/press-this.php (11981 => 11982)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/press-this.php        2009-09-28 22:32:27 UTC (rev 11981)
+++ trunk/wp-admin/press-this.php        2009-09-29 09:46:13 UTC (rev 11982)
</span><span class="lines">@@ -347,10 +347,8 @@
</span><span class="cx">         do_action('admin_print_scripts');
</span><span class="cx">         do_action('admin_head');
</span><span class="cx"> 
</span><del>-        if ( user_can_richedit() ) {
-                add_filter( 'teeny_mce_before_init', create_function( '$a', '$a[&quot;height&quot;] = &quot;400&quot;; $a[&quot;onpageload&quot;] = &quot;&quot;; $a[&quot;mode&quot;] = &quot;textareas&quot;; $a[&quot;editor_selector&quot;] = &quot;mceEditor&quot;; return $a;' ) );
-                wp_tiny_mce( true );
-        }
</del><ins>+        if ( user_can_richedit() )
+                wp_tiny_mce( true, array( 'height' =&gt; '370' ) );
</ins><span class="cx"> ?&gt;
</span><span class="cx">         &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx">         function insert_plain_editor(text) {
</span><span class="lines">@@ -422,7 +420,7 @@
</span><span class="cx">                                 break;
</span><span class="cx">                 }
</span><span class="cx">         }
</span><del>-        jQuery(document).ready(function() {
</del><ins>+        jQuery(document).ready(function($) {
</ins><span class="cx">                 //resize screen
</span><span class="cx">                 window.resizeTo(720,570);
</span><span class="cx">                 // set button actions
</span><span class="lines">@@ -438,10 +436,14 @@
</span><span class="cx">                 &lt;?php } ?&gt;
</span><span class="cx">                 jQuery('#title').unbind();
</span><span class="cx">                 jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); });
</span><ins>+                
+                $('#tagsdiv-post_tag, #categorydiv').children('h3').click(function(){
+                        $(this).siblings('.inside').toggle();
+                });
</ins><span class="cx">         });
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><del>-&lt;body class=&quot;press-this&quot;&gt;
</del><ins>+&lt;body class=&quot;press-this wp-admin&quot;&gt;
</ins><span class="cx"> &lt;div id=&quot;wphead&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;form action=&quot;press-this.php?action=post&quot; method=&quot;post&quot;&gt;
</span><span class="cx"> &lt;div id=&quot;poststuff&quot; class=&quot;metabox-holder&quot;&gt;
</span><span class="lines">@@ -552,10 +554,16 @@
</span><span class="cx">                         &lt;/ul&gt;
</span><span class="cx">                         &lt;div id=&quot;quicktags&quot;&gt;&lt;/div&gt;
</span><span class="cx">                         &lt;div class=&quot;editor-container&quot;&gt;
</span><del>-                                &lt;textarea name=&quot;content&quot; id=&quot;content&quot; style=&quot;width:100%;&quot; class=&quot;mceEditor&quot; rows=&quot;15&quot;&gt;
-                                        &lt;?php if ($selection) echo wp_richedit_pre(htmlspecialchars_decode($selection)); ?&gt;
-                                        &lt;?php if ($url) { echo '&lt;p&gt;'; if($selection) _e('via '); echo &quot;&lt;a href='$url'&gt;$title&lt;/a&gt;.&quot;; echo '&lt;/p&gt;'; } ?&gt;
-                                &lt;/textarea&gt;
</del><ins>+                                &lt;textarea name=&quot;content&quot; id=&quot;content&quot; style=&quot;width:100%;&quot; class=&quot;theEditor&quot; rows=&quot;15&quot;&gt;&lt;?php
+                                        if ( $selection )
+                                                echo wp_richedit_pre(htmlspecialchars_decode($selection));
+                                        if ( $url ) {
+                                                echo '&lt;p&gt;';
+                                                if ( $selection )
+                                                        _e('via ');
+                                                echo &quot;&lt;a href='$url'&gt;$title&lt;/a&gt;.&lt;/p&gt;&quot;;
+                                        }
+                                ?&gt;&lt;/textarea&gt;
</ins><span class="cx">                         &lt;/div&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">         &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 (11981 => 11982)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2009-09-28 22:32:27 UTC (rev 11981)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2009-09-29 09:46:13 UTC (rev 11982)
</span><span class="lines">@@ -16,8 +16,9 @@
</span><span class="cx"> 
</span><span class="cx">                         // Hides the specified toolbar and resizes the iframe
</span><span class="cx">                         ed.onPostRender.add(function() {
</span><del>-                                if ( ed.getParam('wordpress_adv_hidden', 1) ) {
-                                        DOM.hide(ed.controlManager.get(tbId).id);
</del><ins>+                                var adv_toolbar = ed.controlManager.get(tbId);
+                                if ( ed.getParam('wordpress_adv_hidden', 1) &amp;&amp; adv_toolbar ) {
+                                        DOM.hide(adv_toolbar.id);
</ins><span class="cx">                                         t._resizeIframe(ed, tbId, 28);
</span><span class="cx">                                 }
</span><span class="cx">                         });
</span><span class="lines">@@ -41,9 +42,12 @@
</span><span class="cx">                                 });
</span><span class="cx"> 
</span><span class="cx">                         ed.addCommand('WP_Adv', function() {
</span><del>-                                var id = ed.controlManager.get(tbId).id, cm = ed.controlManager;
</del><ins>+                                var cm = ed.controlManager, id = cm.get(tbId).id;
</ins><span class="cx"> 
</span><del>-                                if (DOM.isHidden(id)) {
</del><ins>+                                if ( 'undefined' == id )
+                                        return;
+
+                                if ( DOM.isHidden(id) ) {
</ins><span class="cx">                                         cm.setActive('wp_adv', 1);
</span><span class="cx">                                         DOM.show(id);
</span><span class="cx">                                         t._resizeIframe(ed, tbId, -28);
</span><span class="lines">@@ -122,8 +126,9 @@
</span><span class="cx"> 
</span><span class="cx">                         // Add Media buttons to fullscreen
</span><span class="cx">                         ed.onBeforeExecCommand.add(function(ed, cmd, ui, val) {
</span><ins>+                                var DOM = tinymce.DOM;
</ins><span class="cx">                                 if ( 'mceFullScreen' != cmd ) return;
</span><del>-                                if ( 'mce_fullscreen' != ed.id )
</del><ins>+                                if ( 'mce_fullscreen' != ed.id &amp;&amp; DOM.get('add_audio') &amp;&amp; DOM.get('add_video') &amp;&amp; DOM.get('add_image') &amp;&amp; DOM.get('add_media') )
</ins><span class="cx">                                         ed.settings.theme_advanced_buttons1 += ',|,add_image,add_video,add_audio,add_media';
</span><span class="cx">                         });
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js (11981 => 11982)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2009-09-28 22:32:27 UTC (rev 11981)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2009-09-29 09:46:13 UTC (rev 11982)
</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(){if(c.getParam(&quot;wordpress_adv_hidden&quot;,1)){a.hide(c.controlManager.get(h).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 j=c.controlManager.get(h).id,i=c.controlManager;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,k,j,l){if(&quot;mceFullScreen&quot;!=k){return}if(&quot;mce_fullscreen&quot;!=i.id){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)}}});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;)}},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;}},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;,{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)}}});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;)}},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;}},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="trunkwpincludesjstinymcewptinymcejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/wp-tinymce.js (11981 => 11982)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/wp-tinymce.js        2009-09-28 22:32:27 UTC (rev 11981)
+++ trunk/wp-includes/js/tinymce/wp-tinymce.js        2009-09-29 09:46:13 UTC (rev 11982)
</span><span class="lines">@@ -19,7 +19,7 @@
</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(){if(c.getParam(&quot;wordpress_adv_hidden&quot;,1)){a.hide(c.controlManager.get(h).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 j=c.controlManager.get(h).id,i=c.controlManager;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,k,j,l){if(&quot;mceFullScreen&quot;!=k){return}if(&quot;mce_fullscreen&quot;!=i.id){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)}}});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;)}},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;}},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;,{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)}}});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;)}},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;}},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><span class="cx"> (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.getWin(),&quot;scroll&quot;,function(f){d.plugins.wpeditimage.hideButtons()})});a.onBeforeExecCommand.add(function(d,f,e,g){d.plugins.wpeditimage.hideButtons()});a.onSaveContent.add(function(d,e){d.plugins.wpeditimage.hideButtons()});a.onMouseUp.add(function(d,g){var h,f;if(tinymce.isOpera){if(g.target.nodeName==&quot;IMG&quot;){d.plugins.wpeditimage.showButtons(g.target)}}else{if(!tinymce.isWebKit){h=d.selection.getNode();if(h.nodeName==&quot;IMG&quot;&amp;&amp;(f=d.dom.getParent(h,&quot;DL&quot;))){window.setTimeout(function(){var e=tinyMCE.activeEditor,j=e.selection.getNode(),i=e.dom.getParent(j,&quot;DL&quot;);if(j.width!=(parseInt(e.dom.getStyle(i,&quot;width&quot;))-10)){e.dom.setStyle(i,&quot;width&quot;,parseInt(j.width)+10);e.execCommand(&quot;mceRepaint&quot;)}},100)}}}});a.onMouseDown.add(function(d,f){if(tinymce.isOpera||f.target.nodeName!=&quot;IMG&quot;){c.hideButtons();return}d.plugins.wpeditimage.showButtons(f.target)});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;))){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)}tinymce.dom.Event.cancel(i);d.selection.select(g);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;&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;})},showButtons:function(d){var j=this,e=tinyMCE.activeEditor,g,f,a,i=tinymce.DOM,c,b,h=e.dom.getAttrib(d,&quot;class&quot;);if(h.indexOf(&quot;mceItem&quot;)!=-1||h.indexOf(&quot;wpGallery&quot;)!=-1){return}a=e.dom.getViewPort(e.getWin());g=i.getPos(e.getContentAreaContainer());f=e.dom.getPos(d);c=Math.max(f.x-a.x,0)+g.x;b=Math.max(f.y-a.y,0)+g.y;i.setStyles(&quot;wp_editbtns&quot;,{top:b+5+&quot;px&quot;,left:c+5+&quot;px&quot;,display:&quot;block&quot;});j.btnsTout=window.setTimeout(function(){e.plugins.wpeditimage.hideButtons()},5000)},hideButtons:function(){if(tinymce.DOM.isHidden(&quot;wp_editbtns&quot;)){return}tinymce.DOM.hide(&quot;wp_editbtns&quot;);window.clearTimeout(this.btnsTout)},_createButtons:function(){var d=this,b=tinyMCE.activeEditor,e=tinymce.DOM,a,c,f;e.remove(&quot;wp_editbtns&quot;);a=e.add(document.body,&quot;div&quot;,{id:&quot;wp_editbtns&quot;,style:&quot;display:none;&quot;});c=e.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:d.url+&quot;/img/image.png&quot;,id:&quot;wp_editimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:b.getLang(&quot;wpeditimage.edit_img&quot;)});c.onmousedown=function(h){var g=tinyMCE.activeEditor;g.windowManager.bookmark=g.selection.getBookmark(&quot;simple&quot;);g.execCommand(&quot;WP_EditImage&quot;);this.parentNode.style.display=&quot;none&quot;};f=e.add(&quot;wp_editbtns&quot;,&quot;img&quot;,{src:d.url+&quot;/img/delete.png&quot;,id:&quot;wp_delimgbtn&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:b.getLang(&quot;wpeditimage.del_img&quot;)});f.onmousedown=function(j){var g=tinyMCE.activeEditor,h=g.selection.getNode(),i;if(h.nodeName==&quot;IMG&quot;&amp;&amp;g.dom.getAttrib(h,&quot;class&quot;).indexOf(&quot;mceItem&quot;)==-1){if((i=g.dom.getParent(h,&quot;div&quot;))&amp;&amp;g.dom.hasClass(i,&quot;mceTemp&quot;)){g.dom.remove(i)}else{if((i=g.dom.getParent(h,&quot;A&quot;))&amp;&amp;i.childNodes.length==1){g.dom.remove(i)}else{g.dom.remove(h)}}this.parentNode.style.display=&quot;none&quot;;g.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)})();
</span><span class="cx"> // plugins/wpgallery
</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 (11981 => 11982)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2009-09-28 22:32:27 UTC (rev 11981)
+++ trunk/wp-includes/version.php        2009-09-29 09:46:13 UTC (rev 11982)
</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-1235';
</del><ins>+$tinymce_version = '327-1235a';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the cache manifest version
</span></span></pre>
</div>
</div>

</body>
</html>