<!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>[16405] trunk/wp-includes/js/tinymce:
  Revert the TinyMCE spellchecker to its old behaviour,
  update to tinymce_spellchecker_php_2_0_3, fixes #15268</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/16405">16405</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2010-11-16 17:30:18 +0000 (Tue, 16 Nov 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Revert the TinyMCE spellchecker to its old behaviour, update to tinymce_spellchecker_php_2_0_3, fixes <a href="http://trac.wordpress.org/ticket/15268">#15268</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjstinymcepluginsspellcheckerconfigphp">trunk/wp-includes/js/tinymce/plugins/spellchecker/config.php</a></li>
<li><a href="#trunkwpincludesjstinymcepluginsspellcheckereditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginsspellcheckerincludesgeneralphp">trunk/wp-includes/js/tinymce/plugins/spellchecker/includes/general.php</a></li>
<li><a href="#trunkwpincludesjstinymcepluginsspellcheckerrpcphp">trunk/wp-includes/js/tinymce/plugins/spellchecker/rpc.php</a></li>
<li><a href="#trunkwpincludesjstinymcethemesadvancedskinswp_themeuicss">trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css</a></li>
<li><a href="#trunkwpincludesjstinymcewptinymcejsgz">trunk/wp-includes/js/tinymce/wp-tinymce.js.gz</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjstinymcepluginsspellcheckerconfigphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/spellchecker/config.php (16404 => 16405)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/spellchecker/config.php        2010-11-16 16:36:20 UTC (rev 16404)
+++ trunk/wp-includes/js/tinymce/plugins/spellchecker/config.php        2010-11-16 17:30:18 UTC (rev 16405)
</span><span class="lines">@@ -1,9 +1,8 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> /**
</span><span class="cx">  * config.php
</span><ins>+ *
</ins><span class="cx">  * @package MCManager.includes
</span><del>- * @author Moxiecode
- * @copyright Copyright \xA9 2007, Moxiecode Systems AB, All rights reserved.
</del><span class="cx">  */
</span><span class="cx">         // General settings
</span><span class="cx">         $config['general.engine'] = 'GoogleSpell';
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginsspellcheckereditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js (16404 => 16405)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js        2010-11-16 16:36:20 UTC (rev 16404)
+++ trunk/wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js        2010-11-16 17:30:18 UTC (rev 16405)
</span><span class="lines">@@ -1,417 +1 @@
</span><del>-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
-        var JSONRequest = tinymce.util.JSONRequest, each = tinymce.each, DOM = tinymce.DOM;
-
-        tinymce.create('tinymce.plugins.SpellcheckerPlugin', {
-                getInfo : function() {
-                        return {
-                                longname : 'Spellchecker',
-                                author : 'Moxiecode Systems AB',
-                                authorurl : 'http://tinymce.moxiecode.com',
-                                infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker',
-                                version : tinymce.majorVersion + &quot;.&quot; + tinymce.minorVersion
-                        };
-                },
-
-                init : function(ed, url) {
-                        var t = this, cm;
-
-                        t.url = url;
-                        t.editor = ed;
-                        t.rpcUrl = ed.getParam(&quot;spellchecker_rpc_url&quot;, &quot;rpc.php&quot;);
-
-                        if (t.rpcUrl == 'rpc.php') {
-                                // Sniff if the browser supports native spellchecking (Don't know of a better way)
-                                if (tinymce.isIE)
-                                        return;
-
-                                t.hasSupport = true;
-
-                                // Disable the context menu when spellchecking is active
-                                ed.onContextMenu.addToTop(function(ed, e) {
-                                        if (t.active)
-                                                return false;
-                                });
-                        }
-
-                        // Register commands
-                        ed.addCommand('mceSpellCheck', function() {
-                                if (t.rpcUrl == 'rpc.php') {
-                                        // Enable/disable native spellchecker
-                                        t.editor.getBody().spellcheck = t.active = !t.active;
-                                        return;
-                                }
-
-                                if (!t.active) {
-                                        ed.setProgressState(1);
-                                        t._sendRPC('checkWords', [t.selectedLang, t._getWords()], function(r) {
-                                                if (r.length &gt; 0) {
-                                                        t.active = 1;
-                                                        t._markWords(r);
-                                                        ed.setProgressState(0);
-                                                        ed.nodeChanged();
-                                                } else {
-                                                        ed.setProgressState(0);
-
-                                                        if (ed.getParam('spellchecker_report_no_misspellings', true))
-                                                                ed.windowManager.alert('spellchecker.no_mpell');
-                                                }
-                                        });
-                                } else
-                                        t._done();
-                        });
-
-                        ed.onInit.add(function() {
-                                if (ed.settings.content_css !== false)
-                                        ed.dom.loadCSS(url + '/css/content.css');
-                        });
-
-                        ed.onClick.add(t._showMenu, t);
-                        ed.onContextMenu.add(t._showMenu, t);
-                        ed.onBeforeGetContent.add(function() {
-                                if (t.active)
-                                        t._removeWords();
-                        });
-
-                        ed.onNodeChange.add(function(ed, cm) {
-                                cm.setActive('spellchecker', t.active);
-                        });
-
-                        ed.onSetContent.add(function() {
-                                t._done();
-                        });
-
-                        ed.onBeforeGetContent.add(function() {
-                                t._done();
-                        });
-
-                        ed.onBeforeExecCommand.add(function(ed, cmd) {
-                                if (cmd == 'mceFullScreen')
-                                        t._done();
-                        });
-
-                        // Find selected language
-                        t.languages = {};
-                        each(ed.getParam('spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv', 'hash'), function(v, k) {
-                                if (k.indexOf('+') === 0) {
-                                        k = k.substring(1);
-                                        t.selectedLang = v;
-                                }
-
-                                t.languages[k] = v;
-                        });
-                },
-
-                createControl : function(n, cm) {
-                        var t = this, c, ed = t.editor;
-
-                        if (n == 'spellchecker') {
-                                // Use basic button if we use the native spellchecker
-                                if (t.rpcUrl == 'rpc.php') {
-                                        // Create simple toggle button if we have native support
-                                        if (t.hasSupport)
-                                                c = cm.createButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t});
-
-                                        return c;
-                                }
-
-                                c = cm.createSplitButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t});
-
-                                c.onRenderMenu.add(function(c, m) {
-                                        m.add({title : 'spellchecker.langs', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
-                                        each(t.languages, function(v, k) {
-                                                var o = {icon : 1}, mi;
-
-                                                o.onclick = function() {
-                                                        mi.setSelected(1);
-                                                        t.selectedItem.setSelected(0);
-                                                        t.selectedItem = mi;
-                                                        t.selectedLang = v;
-                                                };
-
-                                                o.title = k;
-                                                mi = m.add(o);
-                                                mi.setSelected(v == t.selectedLang);
-
-                                                if (v == t.selectedLang)
-                                                        t.selectedItem = mi;
-                                        })
-                                });
-
-                                return c;
-                        }
-                },
-
-                // Internal functions
-
-                _walk : function(n, f) {
-                        var d = this.editor.getDoc(), w;
-
-                        if (d.createTreeWalker) {
-                                w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false);
-
-                                while ((n = w.nextNode()) != null)
-                                        f.call(this, n);
-                        } else
-                                tinymce.walk(n, f, 'childNodes');
-                },
-
-                _getSeparators : function() {
-                        var re = '', i, str = this.editor.getParam('spellchecker_word_separator_chars', '\\s!&quot;#$%&amp;()*+,-./:;&lt;=&gt;?@[\]^_{|}\xA7\xA9\xAB\xAE\xB1\xB6\xB7\xB8\xBB\xBC\xBD\xBE\xBF\xD7\xF7\xA4\u201d\u201c');
-
-                        // Build word separator regexp
-                        for (i=0; i&lt;str.length; i++)
-                                re += '\\' + str.charAt(i);
-
-                        return re;
-                },
-
-                _getWords : function() {
-                        var ed = this.editor, wl = [], tx = '', lo = {}, rawWords = [];
-
-                        // Get area text
-                        this._walk(ed.getBody(), function(n) {
-                                if (n.nodeType == 3)
-                                        tx += n.nodeValue + ' ';
-                        });
-
-                        // split the text up into individual words
-                        if (ed.getParam('spellchecker_word_pattern')) {
-                                // look for words that match the pattern
-                                rawWords = tx.match('(' + ed.getParam('spellchecker_word_pattern') + ')', 'gi');
-                        } else {
-                                // Split words by separator
-                                tx = tx.replace(new RegExp('([0-9]|[' + this._getSeparators() + '])', 'g'), ' ');
-                                tx = tinymce.trim(tx.replace(/(\s+)/g, ' '));
-                                rawWords = tx.split(' ');
-                        }
-
-                        // Build word array and remove duplicates
-                        each(rawWords, function(v) {
-                                if (!lo[v]) {
-                                        wl.push(v);
-                                        lo[v] = 1;
-                                }
-                        });
-
-                        return wl;
-                },
-
-                _removeWords : function(w) {
-                        var ed = this.editor, dom = ed.dom, se = ed.selection, b = se.getBookmark();
-
-                        each(dom.select('span').reverse(), function(n) {
-                                if (n &amp;&amp; (dom.hasClass(n, 'mceItemHiddenSpellWord') || dom.hasClass(n, 'mceItemHidden'))) {
-                                        if (!w || dom.decode(n.innerHTML) == w)
-                                                dom.remove(n, 1);
-                                }
-                        });
-
-                        se.moveToBookmark(b);
-                },
-
-                _markWords : function(wl) {
-                        var r1, r2, r3, r4, r5, w = '', ed = this.editor, re = this._getSeparators(), dom = ed.dom, nl = [];
-                        var se = ed.selection, b = se.getBookmark();
-
-                        each(wl, function(v) {
-                                w += (w ? '|' : '') + v;
-                        });
-
-                        r1 = new RegExp('([' + re + '])(' + w + ')([' + re + '])', 'g');
-                        r2 = new RegExp('^(' + w + ')', 'g');
-                        r3 = new RegExp('(' + w + ')([' + re + ']?)$', 'g');
-                        r4 = new RegExp('^(' + w + ')([' + re + ']?)$', 'g');
-                        r5 = new RegExp('(' + w + ')([' + re + '])', 'g');
-
-                        // Collect all text nodes
-                        this._walk(this.editor.getBody(), function(n) {
-                                if (n.nodeType == 3) {
-                                        nl.push(n);
-                                }
-                        });
-
-                        // Wrap incorrect words in spans
-                        each(nl, function(n) {
-                                var v;
-
-                                if (n.nodeType == 3) {
-                                        v = n.nodeValue;
-
-                                        if (r1.test(v) || r2.test(v) || r3.test(v) || r4.test(v)) {
-                                                v = dom.encode(v);
-                                                v = v.replace(r5, '&lt;span class=&quot;mceItemHiddenSpellWord&quot;&gt;$1&lt;/span&gt;$2');
-                                                v = v.replace(r3, '&lt;span class=&quot;mceItemHiddenSpellWord&quot;&gt;$1&lt;/span&gt;$2');
-
-                                                dom.replace(dom.create('span', {'class' : 'mceItemHidden'}, v), n);
-                                        }
-                                }
-                        });
-
-                        se.moveToBookmark(b);
-                },
-
-                _showMenu : function(ed, e) {
-                        var t = this, ed = t.editor, m = t._menu, p1, dom = ed.dom, vp = dom.getViewPort(ed.getWin()), wordSpan = e.target;
-
-                        e = 0; // Fixes IE memory leak
-
-                        if (!m) {
-                                p1 = DOM.getPos(ed.getContentAreaContainer());
-                                //p2 = DOM.getPos(ed.getContainer());
-
-                                m = ed.controlManager.createDropMenu('spellcheckermenu', {
-                                        offset_x : p1.x,
-                                        offset_y : p1.y,
-                                        'class' : 'mceNoIcons'
-                                });
-
-                                t._menu = m;
-                        }
-
-                        if (dom.hasClass(wordSpan, 'mceItemHiddenSpellWord')) {
-                                m.removeAll();
-                                m.add({title : 'spellchecker.wait', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
-
-                                t._sendRPC('getSuggestions', [t.selectedLang, dom.decode(wordSpan.innerHTML)], function(r) {
-                                        var ignoreRpc;
-
-                                        m.removeAll();
-
-                                        if (r.length &gt; 0) {
-                                                m.add({title : 'spellchecker.sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
-                                                each(r, function(v) {
-                                                        m.add({title : v, onclick : function() {
-                                                                dom.replace(ed.getDoc().createTextNode(v), wordSpan);
-                                                                t._checkDone();
-                                                        }});
-                                                });
-
-                                                m.addSeparator();
-                                        } else
-                                                m.add({title : 'spellchecker.no_sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
-
-                                        ignoreRpc = t.editor.getParam(&quot;spellchecker_enable_ignore_rpc&quot;, '');
-                                        m.add({
-                                                title : 'spellchecker.ignore_word',
-                                                onclick : function() {
-                                                        var word = wordSpan.innerHTML;
-
-                                                        dom.remove(wordSpan, 1);
-                                                        t._checkDone();
-
-                                                        // tell the server if we need to
-                                                        if (ignoreRpc) {
-                                                                ed.setProgressState(1);
-                                                                t._sendRPC('ignoreWord', [t.selectedLang, word], function(r) {
-                                                                        ed.setProgressState(0);
-                                                                });
-                                                        }
-                                                }
-                                        });
-
-                                        m.add({
-                                                title : 'spellchecker.ignore_words',
-                                                onclick : function() {
-                                                        var word = wordSpan.innerHTML;
-
-                                                        t._removeWords(dom.decode(word));
-                                                        t._checkDone();
-
-                                                        // tell the server if we need to
-                                                        if (ignoreRpc) {
-                                                                ed.setProgressState(1);
-                                                                t._sendRPC('ignoreWords', [t.selectedLang, word], function(r) {
-                                                                        ed.setProgressState(0);
-                                                                });
-                                                        }
-                                                }
-                                        });
-
-
-                                        if (t.editor.getParam(&quot;spellchecker_enable_learn_rpc&quot;)) {
-                                                m.add({
-                                                        title : 'spellchecker.learn_word',
-                                                        onclick : function() {
-                                                                var word = wordSpan.innerHTML;
-
-                                                                dom.remove(wordSpan, 1);
-                                                                t._checkDone();
-
-                                                                ed.setProgressState(1);
-                                                                t._sendRPC('learnWord', [t.selectedLang, word], function(r) {
-                                                                        ed.setProgressState(0);
-                                                                });
-                                                        }
-                                                });
-                                        }
-
-                                        m.update();
-                                });
-
-                                ed.selection.select(wordSpan);
-                                p1 = dom.getPos(wordSpan);
-                                m.showMenu(p1.x, p1.y + wordSpan.offsetHeight - vp.y);
-
-                                return tinymce.dom.Event.cancel(e);
-                        } else
-                                m.hideMenu();
-                },
-
-                _checkDone : function() {
-                        var t = this, ed = t.editor, dom = ed.dom, o;
-
-                        each(dom.select('span'), function(n) {
-                                if (n &amp;&amp; dom.hasClass(n, 'mceItemHiddenSpellWord')) {
-                                        o = true;
-                                        return false;
-                                }
-                        });
-
-                        if (!o)
-                                t._done();
-                },
-
-                _done : function() {
-                        var t = this, la = t.active;
-
-                        if (t.active) {
-                                t.active = 0;
-                                t._removeWords();
-
-                                if (t._menu)
-                                        t._menu.hideMenu();
-
-                                if (la)
-                                        t.editor.nodeChanged();
-                        }
-                },
-
-                _sendRPC : function(m, p, cb) {
-                        var t = this;
-
-                        JSONRequest.sendRPC({
-                                url : t.rpcUrl,
-                                method : m,
-                                params : p,
-                                success : cb,
-                                error : function(e, x) {
-                                        t.editor.setProgressState(0);
-                                        t.editor.windowManager.alert(e.errstr || ('Error response: ' + x.responseText));
-                                }
-                        });
-                }
-        });
-
-        // Register plugin
-        tinymce.PluginManager.add('spellchecker', tinymce.plugins.SpellcheckerPlugin);
-})();
</del><ins>+(function(){var a=tinymce.util.JSONRequest,c=tinymce.each,b=tinymce.DOM;tinymce.create(&quot;tinymce.plugins.SpellcheckerPlugin&quot;,{getInfo:function(){return{longname:&quot;Spellchecker&quot;,author:&quot;Moxiecode Systems AB&quot;,authorurl:&quot;http://tinymce.moxiecode.com&quot;,infourl:&quot;http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker&quot;,version:tinymce.majorVersion+&quot;.&quot;+tinymce.minorVersion}},init:function(e,f){var g=this,d;g.url=f;g.editor=e;g.rpcUrl=e.getParam(&quot;spellchecker_rpc_url&quot;,this.url+'/rpc.php');if(g.rpcUrl==&quot;{backend}&quot;){if(tinymce.isIE){return}g.hasSupport=true;e.onContextMenu.addToTop(function(h,i){if(g.active){return false}})}e.addCommand(&quot;mceSpellCheck&quot;,function(){if(g.rpcUrl==&quot;{backend}&quot;){g.editor.getBody().spellcheck=g.active=!g.active;return}if(!g.active){e.setProgressState(1);g._sendRPC(&quot;checkWords&quot;,[g.selectedLang,g._getWords()],function(h){if(h.length&gt;0){g.active=1;g._markWords(h);e.setProgressState(0);e.nodeChanged()}else{e.setProgressState(0);if(e.getParam(&quot;spellchecker_report_no_misspellings&quot;,true)){e.windowManager.alert(&quot;spellchecker.no_mpell&quot;)}}})}else{g._done()}});e.onInit.add(function(){if(e.settings.content_css!==false){e.dom.loadCSS(f+&quot;/css/content.css&quot;)}});e.onClick.add(g._showMenu,g);e.onContextMenu.add(g._showMenu,g);e.onBeforeGetContent.add(function(){if(g.active){g._removeWords()}});e.onNodeChange.add(function(i,h){h.setActive(&quot;spellchecker&quot;,g.active)});e.onSetContent.add(function(){g._done()});e.onBeforeGetContent.add(function(){g._done()});e.onBeforeExecCommand.add(function(h,i){if(i==&quot;mceFullScreen&quot;){g._done()}});g.languages={};c(e.getParam(&quot;spellchecker_languages&quot;,&quot;+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv&quot;,&quot;hash&quot;),function(i,h){if(h.indexOf(&quot;+&quot;)===0){h=h.substring(1);g.selectedLang=i}g.languages[h]=i})},createControl:function(h,d){var f=this,g,e=f.editor;if(h==&quot;spellchecker&quot;){if(f.rpcUrl==&quot;{backend}&quot;){if(f.hasSupport){g=d.createButton(h,{title:&quot;spellchecker.desc&quot;,cmd:&quot;mceSpellCheck&quot;,scope:f})}return g}g=d.createSplitButton(h,{title:&quot;spellchecker.desc&quot;,cmd:&quot;mceSpellCheck&quot;,scope:f});g.onRenderMenu.add(function(j,i){i.add({title:&quot;spellchecker.langs&quot;,&quot;class&quot;:&quot;mceMenuItemTitle&quot;}).setDisabled(1);c(f.languages,function(n,m){var p={icon:1},l;p.onclick=function(){l.setSelected(1);f.selectedItem.setSelected(0);f.selectedItem=l;f.selectedLang=n};p.title=m;l=i.add(p);l.setSelected(n==f.selectedLang);if(n==f.selectedLang){f.selectedItem=l}})});return g}},_walk:function(i,g){var h=this.editor.getDoc(),e;if(h.createTreeWalker){e=h.createTreeWalker(i,NodeFilter.SHOW_TEXT,null,false);while((i=e.nextNode())!=null){g.call(this,i)}}else{tinymce.walk(i,g,&quot;childNodes&quot;)}},_getSeparators:function(){var e=&quot;&quot;,d,f=this.editor.getParam(&quot;spellchecker_word_separator_chars&quot;,'\\s!&quot;#$%&amp;()*+,-./:;&lt;=&gt;?@[]^_{|}\xA7\xA9\xAB\xAE\xB1\xB6\xB7\xB8\xBB\xBC\xBD\xBE\xBF\xD7\xF7\xA4\u201d\u201c');for(d=0;d&lt;f.length;d++){e+=&quot;\\&quot;+f.charAt(d)}return e},_getWords:function(){var e=this.editor,g=[],d=&quot;&quot;,f={},h=[];this._walk(e.getBody(),function(i){if(i.nodeType==3){d+=i.nodeValue+&quot; &quot;}});if(e.getParam(&quot;spellchecker_word_pattern&quot;)){h=d.match(&quot;(&quot;+e.getParam(&quot;spellchecker_word_pattern&quot;)+&quot;)&quot;,&quot;gi&quot;)}else{d=d.replace(new RegExp(&quot;([0-9]|[&quot;+this._getSeparators()+&quot;])&quot;,&quot;g&quot;),&quot; &quot;);d=tinymce.trim(d.replace(/(\s+)/g,&quot; &quot;));h=d.split(&quot; &quot;)}c(h,function(i){if(!f[i]){g.push(i);f[i]=1}});return g},_removeWords:function(e){var f=this.editor,h=f.dom,g=f.selection,d=g.getBookmark();c(h.select(&quot;span&quot;).reverse(),function(i){if(i&amp;&amp;(h.hasClass(i,&quot;mceItemHiddenSpellWord&quot;)||h.hasClass(i,&quot;mceItemHidden&quot;))){if(!e||h.decode(i.innerHTML)==e){h.remove(i,1)}}});g.moveToBookmark(d)},_markWords:function(o){var i,h,g,f,e,n=&quot;&quot;,k=this.editor,p=this._getSeparators(),j=k.dom,d=[];var l=k.selection,m=l.getBookmark();c(o,function(q){n+=(n?&quot;|&quot;:&quot;&quot;)+q});i=new RegExp(&quot;([&quot;+p+&quot;])(&quot;+n+&quot;)([&quot;+p+&quot;])&quot;,&quot;g&quot;);h=new RegExp(&quot;^(&quot;+n+&quot;)&quot;,&quot;g&quot;);g=new RegExp(&quot;(&quot;+n+&quot;)([&quot;+p+&quot;]?)$&quot;,&quot;g&quot;);f=new RegExp(&quot;^(&quot;+n+&quot;)([&quot;+p+&quot;]?)$&quot;,&quot;g&quot;);e=new RegExp(&quot;(&quot;+n+&quot;)([&quot;+p+&quot;])&quot;,&quot;g&quot;);this._walk(this.editor.getBody(),function(q){if(q.nodeType==3){d.push(q)}});c(d,function(r){var q;if(r.nodeType==3){q=r.nodeValue;if(i.test(q)||h.test(q)||g.test(q)||f.test(q)){q=j.encode(q);q=q.replace(e,'&lt;span class=&quot;mceItemHiddenSpellWord&quot;&gt;$1&lt;/span&gt;$2');q=q.replace(g,'&lt;span class=&quot;mceItemHiddenSpellWord&quot;&gt;$1&lt;/span&gt;$2');j.replace(j.create(&quot;span&quot;,{&quot;class&quot;:&quot;mceItemHidden&quot;},q),r)}}});l.moveToBookmark(m)},_showMenu:function(g,i){var h=this,g=h.editor,d=h._menu,k,j=g.dom,f=j.getViewPort(g.getWin());if(!d){k=b.getPos(g.getContentAreaContainer());d=g.controlManager.createDropMenu(&quot;spellcheckermenu&quot;,{offset_x:k.x,offset_y:k.y,&quot;class&quot;:&quot;mceNoIcons&quot;});h._menu=d}if(j.hasClass(i.target,&quot;mceItemHiddenSpellWord&quot;)){d.removeAll();d.add({title:&quot;spellchecker.wait&quot;,&quot;class&quot;:&quot;mceMenuItemTitle&quot;}).setDisabled(1);h._sendRPC(&quot;getSuggestions&quot;,[h.selectedLang,j.decode(i.target.innerHTML)],function(l){var e;d.removeAll();if(l.length&gt;0){d.add({title:&quot;spellchecker.sug&quot;,&quot;class&quot;:&quot;mceMenuItemTitle&quot;}).setDisabled(1);c(l,function(m){d.add({title:m,onclick:function(){j.replace(g.getDoc().createTextNode(m),i.target);h._checkDone()}})});d.addSeparator()}else{d.add({title:&quot;spellchecker.no_sug&quot;,&quot;class&quot;:&quot;mceMenuItemTitle&quot;}).setDisabled(1)}e=h.editor.getParam(&quot;spellchecker_enable_ignore_rpc&quot;,&quot;&quot;);d.add({title:&quot;spellchecker.ignore_word&quot;,onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();if(ignore_rpc){g.setProgressState(1);h._sendRPC(&quot;ignoreWord&quot;,[h.selectedLang,m],function(n){g.setProgressState(0)})}}});d.add({title:&quot;spellchecker.ignore_words&quot;,onclick:function(){var m=i.target.innerHTML;h._removeWords(j.decode(m));h._checkDone();if(ignore_rpc){g.setProgressState(1);h._sendRPC(&quot;ignoreWords&quot;,[h.selectedLang,m],function(n){g.setProgressState(0)})}}});if(h.editor.getParam(&quot;spellchecker_enable_learn_rpc&quot;)){d.add({title:&quot;spellchecker.learn_word&quot;,onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();g.setProgressState(1);h._sendRPC(&quot;learnWord&quot;,[h.selectedLang,m],function(n){g.setProgressState(0)})}})}d.update()});g.selection.select(i.target);k=j.getPos(i.target);d.showMenu(k.x,k.y+i.target.offsetHeight-f.y);return tinymce.dom.Event.cancel(i)}else{d.hideMenu()}},_checkDone:function(){var e=this,d=e.editor,g=d.dom,f;c(g.select(&quot;span&quot;),function(h){if(h&amp;&amp;g.hasClass(h,&quot;mceItemHiddenSpellWord&quot;)){f=true;return false}});if(!f){e._done()}},_done:function(){var d=this,e=d.active;if(d.active){d.active=0;d._removeWords();if(d._menu){d._menu.hideMenu()}if(e){d.editor.nodeChanged()}}},_sendRPC:function(e,g,d){var f=this;a.sendRPC({url:f.rpcUrl,method:e,params:g,success:d,error:function(i,h){f.editor.setProgressState(0);f.editor.windowManager.alert(i.errstr||(&quot;Error response: &quot;+h.responseText))}})}});tinymce.PluginManager.add(&quot;spellchecker&quot;,tinymce.plugins.SpellcheckerPlugin)})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginsspellcheckerincludesgeneralphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/spellchecker/includes/general.php (16404 => 16405)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/spellchecker/includes/general.php        2010-11-16 16:36:20 UTC (rev 16404)
+++ trunk/wp-includes/js/tinymce/plugins/spellchecker/includes/general.php        2010-11-16 17:30:18 UTC (rev 16405)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx">  * @param String $default_value Default value to return if value not found.
</span><span class="cx">  * @return String request value by name without magic quoting or default value.
</span><span class="cx">  */
</span><del>-function getRequestParam($name, $default_value = false, $sanitize = false) {
</del><ins>+function getRequestParam($name, $default_value = false) {
</ins><span class="cx">         if (!isset($_REQUEST[$name]))
</span><span class="cx">                 return $default_value;
</span><span class="cx"> 
</span><span class="lines">@@ -33,12 +33,12 @@
</span><span class="cx">                 $newarray = array();
</span><span class="cx"> 
</span><span class="cx">                 foreach ($_REQUEST[$name] as $name =&gt; $value)
</span><del>-                        $newarray[formatParam($name, $sanitize)] = formatParam($value, $sanitize);
</del><ins>+                        $newarray[$name] = $value;
</ins><span class="cx"> 
</span><span class="cx">                 return $newarray;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        return formatParam($_REQUEST[$name], $sanitize);
</del><ins>+        return $_REQUEST[$name];
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function &amp;getLogger() {
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginsspellcheckerrpcphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/spellchecker/rpc.php (16404 => 16405)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/spellchecker/rpc.php        2010-11-16 16:36:20 UTC (rev 16404)
+++ trunk/wp-includes/js/tinymce/plugins/spellchecker/rpc.php        2010-11-16 17:30:18 UTC (rev 16405)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> /**
</span><del>- * $Id: rpc.php 822 2008-04-28 13:45:03Z spocke $
</del><ins>+ * $Id: rpc.php 915 2008-09-03 08:45:28Z spocke $
</ins><span class="cx">  *
</span><span class="cx">  * @package MCManager.includes
</span><span class="cx">  * @author Moxiecode
</span><span class="lines">@@ -109,4 +109,4 @@
</span><span class="cx"> // Return JSON encoded string
</span><span class="cx"> echo $json-&gt;encode($output);
</span><span class="cx"> 
</span><del>-?&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+?&gt;
</ins></span></pre></div>
<a id="trunkwpincludesjstinymcethemesadvancedskinswp_themeuicss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css (16404 => 16405)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css        2010-11-16 16:36:20 UTC (rev 16404)
+++ trunk/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css        2010-11-16 17:30:18 UTC (rev 16405)
</span><span class="lines">@@ -152,7 +152,9 @@
</span><span class="cx">         padding: 1px 2px;
</span><span class="cx"> }
</span><span class="cx"> .wp_themeSkin .mceSplitButton span.mceAction {
</span><del>-        background: url(../../img/icons.gif) 20px 20px;
</del><ins>+        background-image: url(../../img/icons.gif);
+        background-repeat: no-repeat;
+        background-color: transparent;
</ins><span class="cx">         width:20px; 
</span><span class="cx"> }
</span><span class="cx"> .wp_themeSkin .mceSplitButton a.mceOpen {
</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>
</div>

</body>
</html>