alecpl
2008-10-15 b92a67483d467906f8e004718cd6b1f8fb1c0613
- fix multibyte characters on spellchecker suggestions list (still not fixed in tinyMCE repo)


2 files modified
4 ■■■■ changed files
program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php 2 ●●● patch | view | raw | blame | history
program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php 2 ●●● patch | view | raw | blame | history
program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
@@ -38,7 +38,7 @@
        $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) {
program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php
@@ -37,7 +37,7 @@
        $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;
    }