<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[19215] trunk/wp-includes: Bring back the Fullscreen button in Quicktags, fixes #19194</title>
</head>
<body>

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

<h3>Log Message</h3>
<pre>Bring back the Fullscreen button in Quicktags, fixes <a href="http://core.trac.wordpress.org/ticket/19194">#19194</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsquicktagsdevjs">trunk/wp-includes/js/quicktags.dev.js</a></li>
<li><a href="#trunkwpincludesjsquicktagsjs">trunk/wp-includes/js/quicktags.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsquicktagsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/quicktags.dev.js (19214 => 19215)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/quicktags.dev.js        2011-11-08 15:55:58 UTC (rev 19214)
+++ trunk/wp-includes/js/quicktags.dev.js        2011-11-08 16:53:31 UTC (rev 19215)
</span><span class="lines">@@ -224,7 +224,7 @@
</span><span class="cx">         };
</span><span class="cx"> 
</span><span class="cx">         qt._buttonsInit = function() {
</span><del>-                var t = this, canvas, name, settings, theButtons, html, inst, ed, id, i, use = '',
</del><ins>+                var t = this, canvas, name, settings, theButtons, html, inst, ed, id, i, use,
</ins><span class="cx">                         defaults = ',strong,em,link,block,del,ins,img,ul,ol,li,code,more,spell,close,';
</span><span class="cx"> 
</span><span class="cx">                 for ( inst in t.instances ) {
</span><span class="lines">@@ -237,6 +237,7 @@
</span><span class="cx">                         settings = ed.settings;
</span><span class="cx">                         html = '';
</span><span class="cx">                         theButtons = {};
</span><ins>+                        use = '';
</ins><span class="cx"> 
</span><span class="cx">                         // set buttons
</span><span class="cx">                         if ( settings.buttons )
</span><span class="lines">@@ -250,15 +251,17 @@
</span><span class="cx">                                 if ( use &amp;&amp; defaults.indexOf(','+id+',') != -1 &amp;&amp; use.indexOf(','+id+',') == -1 )
</span><span class="cx">                                         continue;
</span><span class="cx"> 
</span><del>-                                if ( !edButtons[i].instance || edButtons[i].instance == inst )
</del><ins>+                                if ( !edButtons[i].instance || edButtons[i].instance == inst ) {
</ins><span class="cx">                                         theButtons[id] = edButtons[i];
</span><ins>+
+                                        if ( edButtons[i].html )
+                                                html += edButtons[i].html(name + '_');
+                                }
</ins><span class="cx">                         }
</span><span class="cx"> 
</span><del>-                        for ( i in theButtons ) {
-                                if ( !theButtons[i] || !theButtons[i].html )
-                                        continue;
-
-                                html += theButtons[i].html(name + '_');
</del><ins>+                        if ( use &amp;&amp; use.indexOf(',fullscreen,') != -1 ) {
+                                theButtons['fullscreen'] = new qt.FullscreenButton();
+                                html += theButtons['fullscreen'].html(name + '_');
</ins><span class="cx">                         }
</span><span class="cx"> 
</span><span class="cx">                         ed.toolbar.innerHTML = html;
</span></span></pre></div>
<a id="trunkwpincludesjsquicktagsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/quicktags.js (19214 => 19215)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/quicktags.js        2011-11-08 15:55:58 UTC (rev 19214)
+++ trunk/wp-includes/js/quicktags.js        2011-11-08 16:53:31 UTC (rev 19215)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var QTags,edButtons=[],edCanvas,edAddTag=function(){},edCheckOpenTags=function(){},edCloseAllTags=function(){},edInsertImage=function(){},edInsertLink=function(){},edInsertTag=function(){},edLink=function(){},edQuickLink=function(){},edRemoveTag=function(){},edShowButton=function(){},edShowLinks=function(){},edSpell=function(){},edToolbar=function(){};function quicktags(a){return new QTags(a)}function edInsertContent(b,a){return QTags.insertContent(a)}function edButton(f,e,c,b,a,d){return QTags.addButton(f,e,c,b,a,&quot;&quot;,-1)}(function(){var b=function(g){var f,e,d;if(typeof jQuery!=&quot;undefined&quot;){jQuery(document).ready(g)}else{f=b;f.funcs=[];f.ready=function(){if(!f.isReady){f.isReady=true;for(e=0;e&lt;f.funcs.length;e++){f.funcs[e]()}}};if(f.isReady){g()}else{f.funcs.push(g)}if(!f.eventAttached){if(document.addEventListener){d=function(){document.removeEventListener(&quot;DOMContentLoaded&quot;,d,false);f.ready()};document.addEventListener(&quot;DO
 MContentLoaded&quot;,d,false);window.addEventListener(&quot;load&quot;,f.ready,false)}else{if(document.attachEvent){d=function(){if(document.readyState===&quot;complete&quot;){document.detachEvent(&quot;onreadystatechange&quot;,d);f.ready()}};document.attachEvent(&quot;onreadystatechange&quot;,d);window.attachEvent(&quot;onload&quot;,f.ready);(function(){try{document.documentElement.doScroll(&quot;left&quot;)}catch(h){setTimeout(arguments.callee,50);return}f.ready()})()}}f.eventAttached=true}}},a=(function(){var d=new Date(),e;e=function(f){var g=f.toString();if(g.length&lt;2){g=&quot;0&quot;+g}return g};return d.getUTCFullYear()+&quot;-&quot;+e(d.getUTCMonth()+1)+&quot;-&quot;+e(d.getUTCDate())+&quot;T&quot;+e(d.getUTCHours())+&quot;:&quot;+e(d.getUTCMinutes())+&quot;:&quot;+e(d.getUTCSeconds())+&quot;+00:00&quot;})(),c;c=QTags=function(j){if(typeof(j)==&quot;string&quot;){j={id:j}}else{if(typeof(j)!=&quot;object&quot;){return false}}var i=this,k=j.id,h=document.getElementB
 yId(k),g=&quot;qt_&quot;+k,d,f,e;if(!k||!h){return false}i.name=g;i.id=k;i.canvas=h;i.settings=j;if(k==&quot;content&quot;&amp;&amp;typeof(adminpage)==&quot;string&quot;&amp;&amp;(adminpage==&quot;post-new-php&quot;||adminpage==&quot;post-php&quot;)){edCanvas=h;e=&quot;ed_toolbar&quot;}else{e=g+&quot;_toolbar&quot;}d=document.createElement(&quot;div&quot;);d.id=e;d.className=&quot;quicktags-toolbar&quot;;h.parentNode.insertBefore(d,h);i.toolbar=d;f=function(n){n=n||window.event;var m=n.target||n.srcElement,l;if(/ ed_button /.test(&quot; &quot;+m.className+&quot; &quot;)){i.canvas=h=document.getElementById(k);l=m.id.replace(g+&quot;_&quot;,&quot;&quot;);if(i.theButtons[l]){i.theButtons[l].callback.call(i.theButtons[l],m,h,i)}}};if(d.addEventListener){d.addEventListener(&quot;click&quot;,f,false)}else{if(d.attachEvent){d.attachEvent(&quot;onclick&quot;,f)}}i.getButton=function(l){return i.theButtons[l]};i.getButtonElement=function(l){return document.getElementById(g+&quot;_&qu
 ot;+l)};c.instances[k]=i;if(!c.instances[0]){c.instances[0]=c.instances[k];b(function(){c._buttonsInit()})}};c.instances={};c.getInstance=function(d){return c.instances[d]};c._buttonsInit=function(){var p=this,g,e,h,o,m,l,n,f,k,d=&quot;&quot;,j=&quot;,strong,em,link,block,del,ins,img,ul,ol,li,code,more,spell,close,&quot;;for(l in p.instances){if(l==0){continue}n=p.instances[l];g=n.canvas;e=n.name;h=n.settings;m=&quot;&quot;;o={};if(h.buttons){d=&quot;,&quot;+h.buttons+&quot;,&quot;}for(k in edButtons){if(!edButtons[k]){continue}f=edButtons[k].id;if(d&amp;&amp;j.indexOf(&quot;,&quot;+f+&quot;,&quot;)!=-1&amp;&amp;d.indexOf(&quot;,&quot;+f+&quot;,&quot;)==-1){continue}if(!edButtons[k].instance||edButtons[k].instance==l){o[f]=edButtons[k]}}for(k in o){if(!o[k]||!o[k].html){continue}m+=o[k].html(e+&quot;_&quot;)}n.toolbar.innerHTML=m;n.theButtons=o}p.buttonsInitDone=true};c.addButton=function(e,i,h,g,d,j,k,l){var f;if(!e||!i){return}k=k||0;g=g||&quot;&quot;;if(typeof(h)===&quot;
 function&quot;){f=new c.Button(e,i,d,j,l);f.callback=h}else{if(typeof(h)===&quot;string&quot;){f=new c.TagButton(e,i,h,g,d,j,l)}else{return}}if(k==-1){return f}if(k&gt;0){while(typeof(edButtons[k])!=&quot;undefined&quot;){k++}edButtons[k]=f}else{edButtons[edButtons.length]=f}if(this.buttonsInitDone){this._buttonsInit()}};c.insertContent=function(g){var h,f,e,i,j,d=document.getElementById(wpActiveEditor);if(!d){return false}if(document.selection){d.focus();h=document.selection.createRange();h.text=g;d.focus()}else{if(d.selectionStart||d.selectionStart==&quot;0&quot;){j=d.value;f=d.selectionStart;e=d.selectionEnd;i=d.scrollTop;d.value=j.substring(0,f)+g+j.substring(e,j.length);d.focus();d.selectionStart=f+g.length;d.selectionEnd=f+g.length;d.scrollTop=i}else{d.value+=g;d.focus()}}return true};c.Button=function(i,g,e,h,d){var f=this;f.id=i;f.display=g;f.access=e;f.title=h||&quot;&quot;;f.instance=d||&quot;&quot;};c.Button.prototype.html=function(e){var d=this.access?' accesskey
 =&quot;'+this.access+'&quot;':&quot;&quot;;return'&lt;input type=&quot;button&quot; id=&quot;'+e+this.id+'&quot;'+d+' class=&quot;ed_button&quot; title=&quot;'+this.title+'&quot; value=&quot;'+this.display+'&quot; /&gt;'};c.Button.prototype.callback=function(){};c.TagButton=function(k,i,g,f,e,j,d){var h=this;c.Button.call(h,k,i,e,j,d);h.tagStart=g;h.tagEnd=f};c.TagButton.prototype=new c.Button();c.TagButton.prototype.openTag=function(g,d){var f=this;if(!d.openTags){d.openTags=[]}if(f.tagEnd){d.openTags.push(f.id);g.value=&quot;/&quot;+g.value}};c.TagButton.prototype.closeTag=function(h,d){var g=this,f=g.isOpen(d);if(f!==false){d.openTags.splice(f,1)}h.value=g.display};c.TagButton.prototype.isOpen=function(d){var g=this,f=0,e=false;if(d.openTags){while(e===false&amp;&amp;f&lt;d.openTags.length){e=d.openTags[f]==g.id?f:false;f++}}else{e=false}return e};c.TagButton.prototype.callback=function(o,h,p){var u=this,q,e,m,g,s=h.value,j,d,n,f,k=s?u.tagEnd:&quot;&quot;;if(document.sele
 ction){h.focus();f=document.selection.createRange();if(f.text.length&gt;0){if(!u.tagEnd){f.text=f.text+u.tagStart}else{f.text=u.tagStart+f.text+k}}else{if(!u.tagEnd){f.text=u.tagStart}else{if(u.isOpen(p)===false){f.text=u.tagStart;u.openTag(o,p)}else{f.text=k;u.closeTag(o,p)}}}h.focus()}else{if(h.selectionStart||h.selectionStart==&quot;0&quot;){q=h.selectionStart;e=h.selectionEnd;m=e;g=h.scrollTop;j=s.substring(0,q);d=s.substring(e,s.length);n=s.substring(q,e);if(q!=e){if(!u.tagEnd){h.value=j+n+u.tagStart+d;m+=u.tagStart.length}else{h.value=j+u.tagStart+n+k+d;m+=u.tagStart.length+k.length}}else{if(!u.tagEnd){h.value=j+u.tagStart+d;m=q+u.tagStart.length}else{if(u.isOpen(p)===false){h.value=j+u.tagStart+d;u.openTag(o,p);m=q+u.tagStart.length}else{h.value=j+k+d;m=q+k.length;u.closeTag(o,p)}}}h.focus();h.selectionStart=m;h.selectionEnd=m;h.scrollTop=g}else{if(!k){h.value+=u.tagStart}else{if(u.isOpen(p)!==false){h.value+=u.tagStart;u.openTag(o,p)}else{h.value+=k;u.closeTag(o,p)}}
 h.focus()}}};c.SpellButton=function(){c.Button.call(this,&quot;spell&quot;,quicktagsL10n.lookup,&quot;&quot;,quicktagsL10n.dictionaryLookup)};c.SpellButton.prototype=new c.Button();c.SpellButton.prototype.callback=function(h,g,d){var j=&quot;&quot;,i,f,e;if(document.selection){g.focus();i=document.selection.createRange();if(i.text.length&gt;0){j=i.text}}else{if(g.selectionStart||g.selectionStart==&quot;0&quot;){f=g.selectionStart;e=g.selectionEnd;if(f!=e){j=g.value.substring(f,e)}}}if(j===&quot;&quot;){j=prompt(quicktagsL10n.wordLookup,&quot;&quot;)}if(j!==null&amp;&amp;/^\w[\w ]*$/.test(j)){window.open(&quot;http://www.answers.com/&quot;+encodeURIComponent(j))}};c.CloseButton=function(){c.Button.call(this,&quot;close&quot;,quicktagsL10n.closeTags,&quot;&quot;,quicktagsL10n.closeAllOpenTags)};c.CloseButton.prototype=new c.Button();c._close=function(i,j,d){var g,f,h=d.openTags;if(h){while(h.length&gt;0){g=d.getButton(h[h.length-1]);f=document.getElementById(d.name+&quot;_&quo
 t;+g.id);g.callback.call(g,f,j,d)}}};c.CloseButton.prototype.callback=c._close;c.closeAllTags=function(e){var d=this.getInstance(e);c._close(&quot;&quot;,d.canvas,d)};c.LinkButton=function(){c.TagButton.call(this,&quot;link&quot;,&quot;link&quot;,&quot;&quot;,&quot;&lt;/a&gt;&quot;,&quot;a&quot;)};c.LinkButton.prototype=new c.TagButton();c.LinkButton.prototype.callback=function(i,j,g,f){var d,h=this;if(typeof(wpLink)!=&quot;undefined&quot;){wpLink.open();return}if(!f){f=&quot;http://&quot;}if(h.isOpen(g)===false){d=prompt(quicktagsL10n.enterURL,f);if(d){h.tagStart='&lt;a href=&quot;'+d+'&quot;&gt;';c.TagButton.prototype.callback.call(h,i,j,g)}}else{c.TagButton.prototype.callback.call(h,i,j,g)}};c.ImgButton=function(){c.TagButton.call(this,&quot;img&quot;,&quot;img&quot;,&quot;&quot;,&quot;&quot;,&quot;m&quot;)};c.ImgButton.prototype=new c.TagButton();c.ImgButton.prototype.callback=function(h,j,f,d){if(!d){d=&quot;http://&quot;}var i=prompt(quicktagsL10n.enterImageURL,d),g;if
 (i){g=prompt(quicktagsL10n.enterImageDescription,&quot;&quot;);this.tagStart='&lt;img src=&quot;'+i+'&quot; alt=&quot;'+g+'&quot; /&gt;';c.TagButton.prototype.callback.call(this,h,j,f)}};c.FullscreenButton=function(){c.Button.call(this,&quot;fullscreen&quot;,quicktagsL10n.fullscreen,&quot;f&quot;,quicktagsL10n.toggleFullscreen)};c.FullscreenButton.prototype=new c.Button();c.FullscreenButton.prototype.callback=function(d,f){if(f.id!=&quot;content&quot;||typeof(fullscreen)==&quot;undefined&quot;){return}fullscreen.on()};edButtons[10]=new c.TagButton(&quot;strong&quot;,&quot;b&quot;,&quot;&lt;strong&gt;&quot;,&quot;&lt;/strong&gt;&quot;,&quot;b&quot;);edButtons[20]=new c.TagButton(&quot;em&quot;,&quot;i&quot;,&quot;&lt;em&gt;&quot;,&quot;&lt;/em&gt;&quot;,&quot;i&quot;),edButtons[30]=new c.LinkButton(),edButtons[40]=new c.TagButton(&quot;block&quot;,&quot;b-quote&quot;,&quot;\n\n&lt;blockquote&gt;&quot;,&quot;&lt;/blockquote&gt;\n\n&quot;,&quot;q&quot;),edButtons[50]=new c.TagB
 utton(&quot;del&quot;,&quot;del&quot;,'&lt;del datetime=&quot;'+a+'&quot;&gt;',&quot;&lt;/del&gt;&quot;,&quot;d&quot;),edButtons[60]=new c.TagButton(&quot;ins&quot;,&quot;ins&quot;,'&lt;ins datetime=&quot;'+a+'&quot;&gt;',&quot;&lt;/ins&gt;&quot;,&quot;s&quot;),edButtons[70]=new c.ImgButton(),edButtons[80]=new c.TagButton(&quot;ul&quot;,&quot;ul&quot;,&quot;&lt;ul&gt;\n&quot;,&quot;&lt;/ul&gt;\n\n&quot;,&quot;u&quot;),edButtons[90]=new c.TagButton(&quot;ol&quot;,&quot;ol&quot;,&quot;&lt;ol&gt;\n&quot;,&quot;&lt;/ol&gt;\n\n&quot;,&quot;o&quot;),edButtons[100]=new c.TagButton(&quot;li&quot;,&quot;li&quot;,&quot;\t&lt;li&gt;&quot;,&quot;&lt;/li&gt;\n&quot;,&quot;l&quot;),edButtons[110]=new c.TagButton(&quot;code&quot;,&quot;code&quot;,&quot;&lt;code&gt;&quot;,&quot;&lt;/code&gt;&quot;,&quot;c&quot;),edButtons[120]=new c.TagButton(&quot;more&quot;,&quot;more&quot;,&quot;&lt;!--more--&gt;&quot;,&quot;&quot;,&quot;t&quot;),edButtons[130]=new c.SpellButton(),edButtons[140]=new c.Cl
 oseButton()})();
</del><span class="cx">\ No newline at end of file
</span><ins>+var QTags,edButtons=[],edCanvas,edAddTag=function(){},edCheckOpenTags=function(){},edCloseAllTags=function(){},edInsertImage=function(){},edInsertLink=function(){},edInsertTag=function(){},edLink=function(){},edQuickLink=function(){},edRemoveTag=function(){},edShowButton=function(){},edShowLinks=function(){},edSpell=function(){},edToolbar=function(){};function quicktags(a){return new QTags(a)}function edInsertContent(b,a){return QTags.insertContent(a)}function edButton(f,e,c,b,a,d){return QTags.addButton(f,e,c,b,a,&quot;&quot;,-1)}(function(){var b=function(g){var f,e,d;if(typeof jQuery!=&quot;undefined&quot;){jQuery(document).ready(g)}else{f=b;f.funcs=[];f.ready=function(){if(!f.isReady){f.isReady=true;for(e=0;e&lt;f.funcs.length;e++){f.funcs[e]()}}};if(f.isReady){g()}else{f.funcs.push(g)}if(!f.eventAttached){if(document.addEventListener){d=function(){document.removeEventListener(&quot;DOMContentLoaded&quot;,d,false);f.ready()};document.addEventListener(&quot;DO
 MContentLoaded&quot;,d,false);window.addEventListener(&quot;load&quot;,f.ready,false)}else{if(document.attachEvent){d=function(){if(document.readyState===&quot;complete&quot;){document.detachEvent(&quot;onreadystatechange&quot;,d);f.ready()}};document.attachEvent(&quot;onreadystatechange&quot;,d);window.attachEvent(&quot;onload&quot;,f.ready);(function(){try{document.documentElement.doScroll(&quot;left&quot;)}catch(h){setTimeout(arguments.callee,50);return}f.ready()})()}}f.eventAttached=true}}},a=(function(){var d=new Date(),e;e=function(f){var g=f.toString();if(g.length&lt;2){g=&quot;0&quot;+g}return g};return d.getUTCFullYear()+&quot;-&quot;+e(d.getUTCMonth()+1)+&quot;-&quot;+e(d.getUTCDate())+&quot;T&quot;+e(d.getUTCHours())+&quot;:&quot;+e(d.getUTCMinutes())+&quot;:&quot;+e(d.getUTCSeconds())+&quot;+00:00&quot;})(),c;c=QTags=function(j){if(typeof(j)==&quot;string&quot;){j={id:j}}else{if(typeof(j)!=&quot;object&quot;){return false}}var i=this,k=j.id,h=document.getElementB
 yId(k),g=&quot;qt_&quot;+k,d,f,e;if(!k||!h){return false}i.name=g;i.id=k;i.canvas=h;i.settings=j;if(k==&quot;content&quot;&amp;&amp;typeof(adminpage)==&quot;string&quot;&amp;&amp;(adminpage==&quot;post-new-php&quot;||adminpage==&quot;post-php&quot;)){edCanvas=h;e=&quot;ed_toolbar&quot;}else{e=g+&quot;_toolbar&quot;}d=document.createElement(&quot;div&quot;);d.id=e;d.className=&quot;quicktags-toolbar&quot;;h.parentNode.insertBefore(d,h);i.toolbar=d;f=function(n){n=n||window.event;var m=n.target||n.srcElement,l;if(/ ed_button /.test(&quot; &quot;+m.className+&quot; &quot;)){i.canvas=h=document.getElementById(k);l=m.id.replace(g+&quot;_&quot;,&quot;&quot;);if(i.theButtons[l]){i.theButtons[l].callback.call(i.theButtons[l],m,h,i)}}};if(d.addEventListener){d.addEventListener(&quot;click&quot;,f,false)}else{if(d.attachEvent){d.attachEvent(&quot;onclick&quot;,f)}}i.getButton=function(l){return i.theButtons[l]};i.getButtonElement=function(l){return document.getElementById(g+&quot;_&qu
 ot;+l)};c.instances[k]=i;if(!c.instances[0]){c.instances[0]=c.instances[k];b(function(){c._buttonsInit()})}};c.instances={};c.getInstance=function(d){return c.instances[d]};c._buttonsInit=function(){var p=this,g,e,h,o,m,l,n,f,k,d,j=&quot;,strong,em,link,block,del,ins,img,ul,ol,li,code,more,spell,close,&quot;;for(l in p.instances){if(l==0){continue}n=p.instances[l];g=n.canvas;e=n.name;h=n.settings;m=&quot;&quot;;o={};d=&quot;&quot;;if(h.buttons){d=&quot;,&quot;+h.buttons+&quot;,&quot;}for(k in edButtons){if(!edButtons[k]){continue}f=edButtons[k].id;if(d&amp;&amp;j.indexOf(&quot;,&quot;+f+&quot;,&quot;)!=-1&amp;&amp;d.indexOf(&quot;,&quot;+f+&quot;,&quot;)==-1){continue}if(!edButtons[k].instance||edButtons[k].instance==l){o[f]=edButtons[k];if(edButtons[k].html){m+=edButtons[k].html(e+&quot;_&quot;)}}}if(d&amp;&amp;d.indexOf(&quot;,fullscreen,&quot;)!=-1){o.fullscreen=new c.FullscreenButton();m+=o.fullscreen.html(e+&quot;_&quot;)}n.toolbar.innerHTML=m;n.theButtons=o}p.buttonsIn
 itDone=true};c.addButton=function(e,i,h,g,d,j,k,l){var f;if(!e||!i){return}k=k||0;g=g||&quot;&quot;;if(typeof(h)===&quot;function&quot;){f=new c.Button(e,i,d,j,l);f.callback=h}else{if(typeof(h)===&quot;string&quot;){f=new c.TagButton(e,i,h,g,d,j,l)}else{return}}if(k==-1){return f}if(k&gt;0){while(typeof(edButtons[k])!=&quot;undefined&quot;){k++}edButtons[k]=f}else{edButtons[edButtons.length]=f}if(this.buttonsInitDone){this._buttonsInit()}};c.insertContent=function(g){var h,f,e,i,j,d=document.getElementById(wpActiveEditor);if(!d){return false}if(document.selection){d.focus();h=document.selection.createRange();h.text=g;d.focus()}else{if(d.selectionStart||d.selectionStart==&quot;0&quot;){j=d.value;f=d.selectionStart;e=d.selectionEnd;i=d.scrollTop;d.value=j.substring(0,f)+g+j.substring(e,j.length);d.focus();d.selectionStart=f+g.length;d.selectionEnd=f+g.length;d.scrollTop=i}else{d.value+=g;d.focus()}}return true};c.Button=function(i,g,e,h,d){var f=this;f.id=i;f.display=g;f.acces
 s=e;f.title=h||&quot;&quot;;f.instance=d||&quot;&quot;};c.Button.prototype.html=function(e){var d=this.access?' accesskey=&quot;'+this.access+'&quot;':&quot;&quot;;return'&lt;input type=&quot;button&quot; id=&quot;'+e+this.id+'&quot;'+d+' class=&quot;ed_button&quot; title=&quot;'+this.title+'&quot; value=&quot;'+this.display+'&quot; /&gt;'};c.Button.prototype.callback=function(){};c.TagButton=function(k,i,g,f,e,j,d){var h=this;c.Button.call(h,k,i,e,j,d);h.tagStart=g;h.tagEnd=f};c.TagButton.prototype=new c.Button();c.TagButton.prototype.openTag=function(g,d){var f=this;if(!d.openTags){d.openTags=[]}if(f.tagEnd){d.openTags.push(f.id);g.value=&quot;/&quot;+g.value}};c.TagButton.prototype.closeTag=function(h,d){var g=this,f=g.isOpen(d);if(f!==false){d.openTags.splice(f,1)}h.value=g.display};c.TagButton.prototype.isOpen=function(d){var g=this,f=0,e=false;if(d.openTags){while(e===false&amp;&amp;f&lt;d.openTags.length){e=d.openTags[f]==g.id?f:false;f++}}else{e=false}return e};c.Tag
 Button.prototype.callback=function(o,h,p){var u=this,q,e,m,g,s=h.value,j,d,n,f,k=s?u.tagEnd:&quot;&quot;;if(document.selection){h.focus();f=document.selection.createRange();if(f.text.length&gt;0){if(!u.tagEnd){f.text=f.text+u.tagStart}else{f.text=u.tagStart+f.text+k}}else{if(!u.tagEnd){f.text=u.tagStart}else{if(u.isOpen(p)===false){f.text=u.tagStart;u.openTag(o,p)}else{f.text=k;u.closeTag(o,p)}}}h.focus()}else{if(h.selectionStart||h.selectionStart==&quot;0&quot;){q=h.selectionStart;e=h.selectionEnd;m=e;g=h.scrollTop;j=s.substring(0,q);d=s.substring(e,s.length);n=s.substring(q,e);if(q!=e){if(!u.tagEnd){h.value=j+n+u.tagStart+d;m+=u.tagStart.length}else{h.value=j+u.tagStart+n+k+d;m+=u.tagStart.length+k.length}}else{if(!u.tagEnd){h.value=j+u.tagStart+d;m=q+u.tagStart.length}else{if(u.isOpen(p)===false){h.value=j+u.tagStart+d;u.openTag(o,p);m=q+u.tagStart.length}else{h.value=j+k+d;m=q+k.length;u.closeTag(o,p)}}}h.focus();h.selectionStart=m;h.selectionEnd=m;h.scrollTop=g}else{if(
 !k){h.value+=u.tagStart}else{if(u.isOpen(p)!==false){h.value+=u.tagStart;u.openTag(o,p)}else{h.value+=k;u.closeTag(o,p)}}h.focus()}}};c.SpellButton=function(){c.Button.call(this,&quot;spell&quot;,quicktagsL10n.lookup,&quot;&quot;,quicktagsL10n.dictionaryLookup)};c.SpellButton.prototype=new c.Button();c.SpellButton.prototype.callback=function(h,g,d){var j=&quot;&quot;,i,f,e;if(document.selection){g.focus();i=document.selection.createRange();if(i.text.length&gt;0){j=i.text}}else{if(g.selectionStart||g.selectionStart==&quot;0&quot;){f=g.selectionStart;e=g.selectionEnd;if(f!=e){j=g.value.substring(f,e)}}}if(j===&quot;&quot;){j=prompt(quicktagsL10n.wordLookup,&quot;&quot;)}if(j!==null&amp;&amp;/^\w[\w ]*$/.test(j)){window.open(&quot;http://www.answers.com/&quot;+encodeURIComponent(j))}};c.CloseButton=function(){c.Button.call(this,&quot;close&quot;,quicktagsL10n.closeTags,&quot;&quot;,quicktagsL10n.closeAllOpenTags)};c.CloseButton.prototype=new c.Button();c._close=function(i,j,d){
 var g,f,h=d.openTags;if(h){while(h.length&gt;0){g=d.getButton(h[h.length-1]);f=document.getElementById(d.name+&quot;_&quot;+g.id);g.callback.call(g,f,j,d)}}};c.CloseButton.prototype.callback=c._close;c.closeAllTags=function(e){var d=this.getInstance(e);c._close(&quot;&quot;,d.canvas,d)};c.LinkButton=function(){c.TagButton.call(this,&quot;link&quot;,&quot;link&quot;,&quot;&quot;,&quot;&lt;/a&gt;&quot;,&quot;a&quot;)};c.LinkButton.prototype=new c.TagButton();c.LinkButton.prototype.callback=function(i,j,g,f){var d,h=this;if(typeof(wpLink)!=&quot;undefined&quot;){wpLink.open();return}if(!f){f=&quot;http://&quot;}if(h.isOpen(g)===false){d=prompt(quicktagsL10n.enterURL,f);if(d){h.tagStart='&lt;a href=&quot;'+d+'&quot;&gt;';c.TagButton.prototype.callback.call(h,i,j,g)}}else{c.TagButton.prototype.callback.call(h,i,j,g)}};c.ImgButton=function(){c.TagButton.call(this,&quot;img&quot;,&quot;img&quot;,&quot;&quot;,&quot;&quot;,&quot;m&quot;)};c.ImgButton.prototype=new c.TagButton();c.Img
 Button.prototype.callback=function(h,j,f,d){if(!d){d=&quot;http://&quot;}var i=prompt(quicktagsL10n.enterImageURL,d),g;if(i){g=prompt(quicktagsL10n.enterImageDescription,&quot;&quot;);this.tagStart='&lt;img src=&quot;'+i+'&quot; alt=&quot;'+g+'&quot; /&gt;';c.TagButton.prototype.callback.call(this,h,j,f)}};c.FullscreenButton=function(){c.Button.call(this,&quot;fullscreen&quot;,quicktagsL10n.fullscreen,&quot;f&quot;,quicktagsL10n.toggleFullscreen)};c.FullscreenButton.prototype=new c.Button();c.FullscreenButton.prototype.callback=function(d,f){if(f.id!=&quot;content&quot;||typeof(fullscreen)==&quot;undefined&quot;){return}fullscreen.on()};edButtons[10]=new c.TagButton(&quot;strong&quot;,&quot;b&quot;,&quot;&lt;strong&gt;&quot;,&quot;&lt;/strong&gt;&quot;,&quot;b&quot;);edButtons[20]=new c.TagButton(&quot;em&quot;,&quot;i&quot;,&quot;&lt;em&gt;&quot;,&quot;&lt;/em&gt;&quot;,&quot;i&quot;),edButtons[30]=new c.LinkButton(),edButtons[40]=new c.TagButton(&quot;block&quot;,&quot;b-q
 uote&quot;,&quot;\n\n&lt;blockquote&gt;&quot;,&quot;&lt;/blockquote&gt;\n\n&quot;,&quot;q&quot;),edButtons[50]=new c.TagButton(&quot;del&quot;,&quot;del&quot;,'&lt;del datetime=&quot;'+a+'&quot;&gt;',&quot;&lt;/del&gt;&quot;,&quot;d&quot;),edButtons[60]=new c.TagButton(&quot;ins&quot;,&quot;ins&quot;,'&lt;ins datetime=&quot;'+a+'&quot;&gt;',&quot;&lt;/ins&gt;&quot;,&quot;s&quot;),edButtons[70]=new c.ImgButton(),edButtons[80]=new c.TagButton(&quot;ul&quot;,&quot;ul&quot;,&quot;&lt;ul&gt;\n&quot;,&quot;&lt;/ul&gt;\n\n&quot;,&quot;u&quot;),edButtons[90]=new c.TagButton(&quot;ol&quot;,&quot;ol&quot;,&quot;&lt;ol&gt;\n&quot;,&quot;&lt;/ol&gt;\n\n&quot;,&quot;o&quot;),edButtons[100]=new c.TagButton(&quot;li&quot;,&quot;li&quot;,&quot;\t&lt;li&gt;&quot;,&quot;&lt;/li&gt;\n&quot;,&quot;l&quot;),edButtons[110]=new c.TagButton(&quot;code&quot;,&quot;code&quot;,&quot;&lt;code&gt;&quot;,&quot;&lt;/code&gt;&quot;,&quot;c&quot;),edButtons[120]=new c.TagButton(&quot;more&quot;,&quot;more&q
 uot;,&quot;&lt;!--more--&gt;&quot;,&quot;&quot;,&quot;t&quot;),edButtons[130]=new c.SpellButton(),edButtons[140]=new c.CloseButton()})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (19214 => 19215)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-11-08 15:55:58 UTC (rev 19214)
+++ trunk/wp-includes/script-loader.php        2011-11-08 16:53:31 UTC (rev 19215)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'sack', &quot;/wp-includes/js/tw-sack$suffix.js&quot;, false, '1.6.1', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'quicktags', &quot;/wp-includes/js/quicktags$suffix.js&quot;, false, '20111105', 1 );
</del><ins>+        $scripts-&gt;add( 'quicktags', &quot;/wp-includes/js/quicktags$suffix.js&quot;, false, '20111108', 1 );
</ins><span class="cx">         $scripts-&gt;add_script_data( 'quicktags', 'quicktagsL10n', array(
</span><span class="cx">                 'wordLookup' =&gt; __('Enter a word to look up:'),
</span><span class="cx">                 'dictionaryLookup' =&gt; esc_attr(__('Dictionary lookup')),
</span></span></pre>
</div>
</div>

</body>
</html>