<!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>[12304] trunk:
  Remove oEmbed references and auto-insert of shortcodes from the UI,
  fixes #11288</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12304">12304</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2009-12-01 09:22:48 +0000 (Tue, 01 Dec 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove oEmbed references and auto-insert of shortcodes from the UI, fixes <a href="http://trac.wordpress.org/ticket/11288">#11288</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesmediaphp">trunk/wp-admin/includes/media.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>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludesmediaphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/media.php (12303 => 12304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/media.php        2009-12-01 08:14:42 UTC (rev 12303)
+++ trunk/wp-admin/includes/media.php        2009-12-01 09:22:48 UTC (rev 12304)
</span><span class="lines">@@ -482,23 +482,17 @@
</span><span class="cx"> 
</span><span class="cx">         if ( !empty($_POST['insertonlybutton']) ) {
</span><span class="cx">                 $alt = $align = '';
</span><del>-                if ( !empty($_POST['insertonly']['embed-src']) ) {
-                        $src = $_POST['insertonly']['embed-src'];
-                        if ( !strpos($src, '://') )
-                                $src = &quot;http://$src&quot;;
-                        $html = '[embed]' . esc_url($src) . '[/embed]';
-                } else {
-                        $src = $_POST['insertonly']['src'];
-                        if ( !empty($src) &amp;&amp; !strpos($src, '://') )
-                                $src = &quot;http://$src&quot;;
-                        $alt = esc_attr($_POST['insertonly']['alt']);
-                        if ( isset($_POST['insertonly']['align']) ) {
-                                $align = esc_attr($_POST['insertonly']['align']);
-                                $class = &quot; class='align$align'&quot;;
-                        }
-                        if ( !empty($src) )
-                                $html = &quot;&lt;img src='&quot; . esc_url($src) . &quot;' alt='$alt'$class /&gt;&quot;;
</del><ins>+
+                $src = $_POST['insertonly']['src'];
+                if ( !empty($src) &amp;&amp; !strpos($src, '://') )
+                        $src = &quot;http://$src&quot;;
+                $alt = esc_attr($_POST['insertonly']['alt']);
+                if ( isset($_POST['insertonly']['align']) ) {
+                        $align = esc_attr($_POST['insertonly']['align']);
+                        $class = &quot; class='align$align'&quot;;
</ins><span class="cx">                 }
</span><ins>+                if ( !empty($src) )
+                        $html = &quot;&lt;img src='&quot; . esc_url($src) . &quot;' alt='$alt'$class /&gt;&quot;;
</ins><span class="cx"> 
</span><span class="cx">                 $html = apply_filters('image_send_to_editor_url', $html, esc_url_raw($src), $alt, $align);
</span><span class="cx">                 return media_send_to_editor($html);
</span><span class="lines">@@ -596,8 +590,15 @@
</span><span class="cx">                 if ( !empty($href) &amp;&amp; !strpos($href, '://') )
</span><span class="cx">                         $href = &quot;http://$href&quot;;
</span><span class="cx"> 
</span><del>-                $html = '[embed]' . esc_url($href) . '[/embed]';
-                $html = apply_filters('audio_send_to_editor_url', $html, esc_url_raw($href));
</del><ins>+                $title = esc_attr($_POST['insertonly']['title']);
+                if ( empty($title) )
+            $title = esc_attr( basename($href) );
+
+                if ( !empty($title) &amp;&amp; !empty($href) )
+            $html = &quot;&lt;a href='&quot; . esc_url($href) . &quot;' &gt;$title&lt;/a&gt;&quot;;
+
+                $html = apply_filters('audio_send_to_editor_url', $html, $href, $title);
+
</ins><span class="cx">                 return media_send_to_editor($html);
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -647,8 +648,15 @@
</span><span class="cx">                 if ( !empty($href) &amp;&amp; !strpos($href, '://') )
</span><span class="cx">                         $href = &quot;http://$href&quot;;
</span><span class="cx"> 
</span><del>-                $html = '[embed]' . esc_url($href) . '[/embed]';
-                $html = apply_filters('video_send_to_editor_url', $html, esc_url_raw($href));
</del><ins>+                $title = esc_attr($_POST['insertonly']['title']);
+        if ( empty($title) )
+            $title = esc_attr( basename($href) );
+
+                if ( !empty($title) &amp;&amp; !empty($href) )
+            $html = &quot;&lt;a href='&quot; . esc_url($href) . &quot;' &gt;$title&lt;/a&gt;&quot;;
+
+                $html = apply_filters('video_send_to_editor_url', $html, $href, $title);
+
</ins><span class="cx">                 return media_send_to_editor($html);
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -1539,9 +1547,6 @@
</span><span class="cx">         insert : function() {
</span><span class="cx">                 var t = this, html, f = document.forms[0], cls, title = '', alt = '', caption = '';
</span><span class="cx"> 
</span><del>-                if ( '' != document.getElementById('embed-src').value )
-                        return true;
-
</del><span class="cx">                 if ( '' == f.src.value || '' == t.width )
</span><span class="cx">                         return false;
</span><span class="cx"> 
</span><span class="lines">@@ -1951,24 +1956,6 @@
</span><span class="cx">                 $default_align = 'none';
</span><span class="cx"> 
</span><span class="cx">         return '
</span><del>-        &lt;h4 class=&quot;media-sub-title&quot;&gt;' . __('Embed a picture from a web site that supports oEmbed') . '&lt;/h4&gt;
-        &lt;table class=&quot;describe&quot;&gt;&lt;tbody&gt;
-                &lt;tr&gt;
-                        &lt;th valign=&quot;top&quot; scope=&quot;row&quot; class=&quot;label&quot; style=&quot;width:130px;&quot;&gt;
-                                &lt;span class=&quot;alignleft&quot;&gt;&lt;label for=&quot;embed-src&quot;&gt;' . __('Embed image') . '&lt;/label&gt;&lt;/span&gt;
-                                &lt;span class=&quot;alignright&quot;&gt;&lt;abbr title=&quot;required&quot; class=&quot;required&quot;&gt;*&lt;/abbr&gt;&lt;/span&gt;
-                        &lt;/th&gt;
-                        &lt;td class=&quot;field&quot;&gt;&lt;input id=&quot;embed-src&quot; name=&quot;insertonly[embed-src]&quot; value=&quot;&quot; type=&quot;text&quot; /&gt;&lt;/td&gt;
-                &lt;/tr&gt;
-
-                &lt;tr&gt;
-                        &lt;td&gt;&lt;/td&gt;
-                        &lt;td&gt;
-                                &lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;insertonlybutton&quot; value=&quot;' . esc_attr__('Embed') . '&quot; /&gt;
-                        &lt;/td&gt;
-                &lt;/tr&gt;
-        &lt;/tbody&gt;&lt;/table&gt;
-
</del><span class="cx">         &lt;h4 class=&quot;media-sub-title&quot;&gt;' . __('Insert an image from another web site') . '&lt;/h4&gt;
</span><span class="cx">         &lt;table class=&quot;describe&quot;&gt;&lt;tbody&gt;
</span><span class="cx">                 &lt;tr&gt;
</span><span class="lines">@@ -2048,8 +2035,15 @@
</span><span class="cx">                         &lt;/th&gt;
</span><span class="cx">                         &lt;td class=&quot;field&quot;&gt;&lt;input id=&quot;insertonly[href]&quot; name=&quot;insertonly[href]&quot; value=&quot;&quot; type=&quot;text&quot; aria-required=&quot;true&quot;&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><del>-
</del><span class="cx">                 &lt;tr&gt;
</span><ins>+                        &lt;th valign=&quot;top&quot; scope=&quot;row&quot; class=&quot;label&quot;&gt;
+                                &lt;span class=&quot;alignleft&quot;&gt;&lt;label for=&quot;insertonly[title]&quot;&gt;' . __('Title') . '&lt;/label&gt;&lt;/span&gt;
+                                &lt;span class=&quot;alignright&quot;&gt;&lt;abbr title=&quot;required&quot; class=&quot;required&quot;&gt;*&lt;/abbr&gt;&lt;/span&gt;
+                        &lt;/th&gt;
+                        &lt;td class=&quot;field&quot;&gt;&lt;input id=&quot;insertonly[title]&quot; name=&quot;insertonly[title]&quot; value=&quot;&quot; type=&quot;text&quot; aria-required=&quot;true&quot;&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+                &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td class=&quot;help&quot;&gt;' . __('Link text, e.g. &amp;#8220;Still Alive by Jonathan Coulton&amp;#8221;') . '&lt;/td&gt;&lt;/tr&gt;
+                &lt;tr&gt;
</ins><span class="cx">                         &lt;td&gt;&lt;/td&gt;
</span><span class="cx">                         &lt;td&gt;
</span><span class="cx">                                 &lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;insertonlybutton&quot; value=&quot;' . esc_attr__('Insert into Post') . '&quot; /&gt;
</span><span class="lines">@@ -2076,8 +2070,15 @@
</span><span class="cx">                         &lt;/th&gt;
</span><span class="cx">                         &lt;td class=&quot;field&quot;&gt;&lt;input id=&quot;insertonly[href]&quot; name=&quot;insertonly[href]&quot; value=&quot;&quot; type=&quot;text&quot; aria-required=&quot;true&quot;&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><del>-
</del><span class="cx">                 &lt;tr&gt;
</span><ins>+                        &lt;th valign=&quot;top&quot; scope=&quot;row&quot; class=&quot;label&quot;&gt;
+                                &lt;span class=&quot;alignleft&quot;&gt;&lt;label for=&quot;insertonly[title]&quot;&gt;' . __('Title') . '&lt;/label&gt;&lt;/span&gt;
+                                &lt;span class=&quot;alignright&quot;&gt;&lt;abbr title=&quot;required&quot; class=&quot;required&quot;&gt;*&lt;/abbr&gt;&lt;/span&gt;
+                        &lt;/th&gt;
+                        &lt;td class=&quot;field&quot;&gt;&lt;input id=&quot;insertonly[title]&quot; name=&quot;insertonly[title]&quot; value=&quot;&quot; type=&quot;text&quot; aria-required=&quot;true&quot;&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+                &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td class=&quot;help&quot;&gt;' . __('Link text, e.g. &amp;#8220;Lucy on YouTube&amp;#8220;') . '&lt;/td&gt;&lt;/tr&gt;
+                &lt;tr&gt;
</ins><span class="cx">                         &lt;td&gt;&lt;/td&gt;
</span><span class="cx">                         &lt;td&gt;
</span><span class="cx">                                 &lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;insertonlybutton&quot; value=&quot;' . esc_attr__('Insert into Post') . '&quot; /&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 (12303 => 12304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2009-12-01 08:14:42 UTC (rev 12303)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js        2009-12-01 09:22:48 UTC (rev 12304)
</span><span class="lines">@@ -177,6 +177,7 @@
</span><span class="cx">                                 }
</span><span class="cx">                         });
</span><span class="cx"> 
</span><ins>+                        /* disable for now
</ins><span class="cx">                         ed.onBeforeSetContent.add(function(ed, o) {
</span><span class="cx">                                 o.content = t._setEmbed(o.content);
</span><span class="cx">                         });
</span><span class="lines">@@ -185,6 +186,7 @@
</span><span class="cx">                                 if ( o.get )
</span><span class="cx">                                         o.content = t._getEmbed(o.content);
</span><span class="cx">                         });
</span><ins>+                        */
</ins><span class="cx"> 
</span><span class="cx">                         // Add listeners to handle more break
</span><span class="cx">                         t._handleMoreBreak(ed, url);
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js (12303 => 12304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2009-12-01 08:14:42 UTC (rev 12303)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2009-12-01 09:22:48 UTC (rev 12304)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){var a=tinymce.DOM;tinymce.create(&quot;tinymce.plugins.WordPress&quot;,{mceTout:0,init:function(c,d){var e=this,h=c.getParam(&quot;wordpress_adv_toolbar&quot;,&quot;toolbar2&quot;),g=0,f,b;f='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';if(getUserSetting(&quot;hidetb&quot;,&quot;0&quot;)==&quot;1&quot;){c.settings.wordpress_adv_hidden=0}c.onPostRender.add(function(){var i=c.controlManager.get(h);if(c.getParam(&quot;wordpress_adv_hidden&quot;,1)&amp;&amp;i){a.hide(i.id);e._resizeIframe(c,h,28)}});c.addCommand(&quot;WP_More&quot;,function(){c.execCommand(&quot;mceInsertContent&quot;,0,f)});c.addCommand(&quot;WP_Page&quot;,function(){c.execCommand(&quot;mceInsertContent&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()});c.onMouseDown.add(function(i,j){if(j.target.nodeName!=&quot;IMG&quot;){i.plugins.wordpress._hideButtons()}})},getInfo:function(){return{longname:&quot;WordPress Plugin&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;3.0&quot;}},_setEmbed:function(b){return b.replace(/\[embed\]([\s\S]+?)\[\/embed\][\s\u00a0]*/g,function(d,c){return'&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;'+tinymce.baseURL+'/plugins/wordpress/img/trans.gif&quot; class=&quot;wp-oembed mceItemNoResize&quot; alt=&quot;'+c+'&quot; title=&quot;'+c+'&quot; /&gt;'})},_getEmbed:function(b){return b.replace(/&lt;img[^&gt;]+&gt;/g,function(c){if(c.indexOf('class=&quot;wp-oembed')!=-1){var d=c.match(/alt=&quot;([^\&quot;]+)&quot;/);if(d[1]){c=&quot;[embed]&quot;+d[1]+&quot;[/embed]&quot;}}return c})},_showButtons:function(f,d){var g=tinyMCE.activeEditor,i,h,b,j=tinymce.DOM,e,c;b=g.dom.getViewPort(g.getWin());i=j.getPos(g.getContentAreaContainer());h=g.dom.getPos(f);e=Math.max(h.x-b.x,0)+i.x;c=Math.max(h.y-b.y,0)+i.y;j.setStyles(d,{top:c+5+&quot;px&quot;,left:e+5+&quot;px&quot;,display:&quot;block&quot;});if(this.mceTout){clearTimeout(this.mceTout)}this.mceTout=setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){if(!this.mceTout){return}if(document.getElementById(&quot;wp_editbtns&quot;)){tinymce.DOM.hide(&quot;wp_editbtns&quot;)}if(document.getElementById(&quot;wp_gallerybtns&quot;)){tinymce.DOM.hide(&quot;wp_gallerybtns&quot;)}clearTimeout(this.mceTout);this.mceTout=0},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)}}});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()});c.onMouseDown.add(function(i,j){if(j.target.nodeName!=&quot;IMG&quot;){i.plugins.wordpress._hideButtons()}})},getInfo:function(){return{longname:&quot;WordPress Plugin&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;3.0&quot;}},_setEmbed:function(b){return b.replace(/\[embed\]([\s\S]+?)\[\/embed\][\s\u00a0]*/g,function(d,c){return'&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;'+tinymce.baseURL+'/plugins/wordpress/img/trans.gif&quot; class=&quot;wp-oembed mceItemNoResize&quot; alt=&quot;'+c+'&quot; title=&quot;'+c+'&quot; /&gt;'})},_getEmbed:function(b){return b.replace(/&lt;img[^&gt;]+&gt;/g,function(c){if(c.indexOf('class=&quot;wp-oembed')!=-1){var d=c.match(/alt=&quot;([^\&quot;]+)&quot;/);if(d[1]){c=&quot;[embed]&quot;+d[1]+&quot;[/embed]&quot;}}return c})},_showButtons:function(f,d){var g=tinyMCE.activeEditor,i,h,b,j=tinymce.DOM,e,c;b=g.dom.getViewPort(g.getWin());i=j.getPos(g.getContentAreaContainer());h=g.dom.getPos(f);e=Math.max(h.x-b.x,0)+i.x;c=Math.max(h.y-b.y,0)+i.y;j.setStyles(d,{top:c+5+&quot;px&quot;,left:e+5+&quot;px&quot;,display:&quot;block&quot;});if(this.mceTout){clearTimeout(this.mceTout)}this.mceTout=setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){if(!this.mceTout){return}if(document.getElementById(&quot;wp_editbtns&quot;)){tinymce.DOM.hide(&quot;wp_editbtns&quot;)}if(document.getElementById(&quot;wp_gallerybtns&quot;)){tinymce.DOM.hide(&quot;wp_gallerybtns&quot;)}clearTimeout(this.mceTout);this.mceTout=0},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 (12303 => 12304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/wp-tinymce.js        2009-12-01 08:14:42 UTC (rev 12303)
+++ trunk/wp-includes/js/tinymce/wp-tinymce.js        2009-12-01 09:22:48 UTC (rev 12304)
</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;,{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()});c.onMouseDown.add(function(i,j){if(j.target.nodeName!=&quot;IMG&quot;){i.plugins.wordpress._hideButtons()}})},getInfo:function(){return{longname:&quot;WordPress Plugin&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;3.0&quot;}},_setEmbed:function(b){return b.replace(/\[embed\]([\s\S]+?)\[\/embed\][\s\u00a0]*/g,function(d,c){return'&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;'+tinymce.baseURL+'/plugins/wordpress/img/trans.gif&quot; class=&quot;wp-oembed mceItemNoResize&quot; alt=&quot;'+c+'&quot; title=&quot;'+c+'&quot; /&gt;'})},_getEmbed:function(b){return b.replace(/&lt;img[^&gt;]+&gt;/g,function(c){if(c.indexOf('class=&quot;wp-oembed')!=-1){var d=c.match(/alt=&quot;([^\&quot;]+)&quot;/);if(d[1]){c=&quot;[embed]&quot;+d[1]+&quot;[/embed]&quot;}}return c})},_showButtons:function(f,d){var g=tinyMCE.activeEditor,i,h,b,j=tinymce.DOM,e,c;b=g.dom.getViewPort(g.getWin());i=j.getPos(g.getContentAreaContainer());h=g.dom.getPos(f);e=Math.max(h.x-b.x,0)+i.x;c=Math.max(h.y-b.y,0)+i.y;j.setStyles(d,{top:c+5+&quot;px&quot;,left:e+5+&quot;px&quot;,display:&quot;block&quot;});if(this.mceTout){clearTimeout(this.mceTout)}this.mceTout=setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){if(!this.mceTout){return}if(document.getElementById(&quot;wp_editbtns&quot;)){tinymce.DOM.hide(&quot;wp_editbtns&quot;)}if(document.getElementById(&quot;wp_gallerybtns&quot;)){tinymce.DOM.hide(&quot;wp_gallerybtns&quot;)}clearTimeout(this.mceTout);this.mceTout=0},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)}}});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()});c.onMouseDown.add(function(i,j){if(j.target.nodeName!=&quot;IMG&quot;){i.plugins.wordpress._hideButtons()}})},getInfo:function(){return{longname:&quot;WordPress Plugin&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;3.0&quot;}},_setEmbed:function(b){return b.replace(/\[embed\]([\s\S]+?)\[\/embed\][\s\u00a0]*/g,function(d,c){return'&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;'+tinymce.baseURL+'/plugins/wordpress/img/trans.gif&quot; class=&quot;wp-oembed mceItemNoResize&quot; alt=&quot;'+c+'&quot; title=&quot;'+c+'&quot; /&gt;'})},_getEmbed:function(b){return b.replace(/&lt;img[^&gt;]+&gt;/g,function(c){if(c.indexOf('class=&quot;wp-oembed')!=-1){var d=c.match(/alt=&quot;([^\&quot;]+)&quot;/);if(d[1]){c=&quot;[embed]&quot;+d[1]+&quot;[/embed]&quot;}}return c})},_showButtons:function(f,d){var g=tinyMCE.activeEditor,i,h,b,j=tinymce.DOM,e,c;b=g.dom.getViewPort(g.getWin());i=j.getPos(g.getContentAreaContainer());h=g.dom.getPos(f);e=Math.max(h.x-b.x,0)+i.x;c=Math.max(h.y-b.y,0)+i.y;j.setStyles(d,{top:c+5+&quot;px&quot;,left:e+5+&quot;px&quot;,display:&quot;block&quot;});if(this.mceTout){clearTimeout(this.mceTout)}this.mceTout=setTimeout(function(){g.plugins.wordpress._hideButtons()},5000)},_hideButtons:function(){if(!this.mceTout){return}if(document.getElementById(&quot;wp_editbtns&quot;)){tinymce.DOM.hide(&quot;wp_editbtns&quot;)}if(document.getElementById(&quot;wp_gallerybtns&quot;)){tinymce.DOM.hide(&quot;wp_gallerybtns&quot;)}clearTimeout(this.mceTout);this.mceTout=0},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.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;&amp;&amp;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)})();
</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 (12303 => 12304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2009-12-01 08:14:42 UTC (rev 12303)
+++ trunk/wp-includes/version.php        2009-12-01 09:22:48 UTC (rev 12304)
</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-1235d';
</del><ins>+$tinymce_version = '327-1235';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the cache manifest version
</span></span></pre>
</div>
</div>

</body>
</html>