<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -38,6 +38,8 @@
         &lt;p&gt;Currently the only 2 misspellings supported by this checker is &lt;code&gt;Thsi&lt;/code&gt; and &lt;code&gt;tset&lt;/code&gt;.&lt;/p&gt;
         &lt;p&gt;You will need to provide the backend spell check server (of your choice) and modify this code in the proper places (commented).&lt;/p&gt;
         &lt;textarea id=&quot;editor&quot;&gt;
+        Thsi is a tset.&lt;br&gt;
+        Thsi is a tset.&lt;br&gt;
         Thsi is a tset.
         &lt;/textarea&gt;
         &lt;h2&gt;The Javascript&lt;/h2&gt;</diff>
      <filename>editor42/index.php</filename>
    </modified>
    <modified>
      <diff>@@ -118,7 +118,7 @@
         var data = eval('(' + o.responseText + ')');
         var html = this._getDoc().body.innerHTML;
         for (var i = 0; i &lt; data.data.length; i++) {
-            html = html.replace(data.data[i].word, '&lt;span class=&quot;yui-spellcheck&quot;&gt;' + data.data[i].word + '&lt;/span&gt;');
+            html = html.replace(new RegExp(data.data[i].word, 'g'), '&lt;span class=&quot;yui-spellcheck&quot;&gt;' + data.data[i].word + '&lt;/span&gt;');
         }
         this.setEditorHTML(html);
         this._spellData = data.data;</diff>
      <filename>editor42/spellcheck.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>783fe9e3ea566cb26a18d3ac41811eae574ef80b</id>
    </parent>
  </parents>
  <author>
    <name>Dav Glass</name>
    <email>davglass@gmail.com</email>
  </author>
  <url>http://github.com/davglass/yui-examples/commit/db94cd68062ec3017d630dd8367a4096e29d0070</url>
  <id>db94cd68062ec3017d630dd8367a4096e29d0070</id>
  <committed-date>2009-09-10T10:35:16-07:00</committed-date>
  <authored-date>2009-09-10T10:35:16-07:00</authored-date>
  <message>Updated to handle multiple misspelled words</message>
  <tree>77c397a721eec2c98405a6eef48fb5691681a056</tree>
  <committer>
    <name>Dav Glass</name>
    <email>davglass@gmail.com</email>
  </committer>
</commit>
