summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-15 07:44:41 +0000
committeralecpl <alec@alec.pl>2008-10-15 07:44:41 +0000
commitb92a67483d467906f8e004718cd6b1f8fb1c0613 (patch)
tree51f6894a92771b76b05ec85083d6228c114f4d61 /program/js
parentb214f8d4d81a167cd651a0c021a7f1486600c1f4 (diff)
- fix multibyte characters on spellchecker suggestions list (still not fixed in tinyMCE repo)
Diffstat (limited to 'program/js')
-rwxr-xr-xprogram/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php2
-rwxr-xr-xprogram/js/tiny_mce/plugins/spellchecker/classes/PSpell.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php b/program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
index 73479844b..d57dee7f2 100755
--- a/program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
+++ b/program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
@@ -38,7 +38,7 @@ class GoogleSpell extends SpellChecker {
$matches = $this->_getMatches($lang, $word);
if (count($matches) > 0)
- $sug = explode("\t", utf8_encode($this->_unhtmlentities($matches[0][4])));
+ $sug = explode("\t", $this->_unhtmlentities($matches[0][4]));
// Remove empty
foreach ($sug as $item) {
diff --git a/program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php b/program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php
index 45448d070..6aa255cbd 100755
--- a/program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php
+++ b/program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php
@@ -37,7 +37,7 @@ class PSpell extends SpellChecker {
$words = pspell_suggest($this->_getPLink($lang), $word);
for ($i=0; $i<count($words); $i++)
- $words[$i] = utf8_encode($words[$i]);
+ $words[$i] = $words[$i];
return $words;
}