From 422fde6e998684735cd18684e6273d564f825b2a Mon Sep 17 00:00:00 2001 From: estadtherr Date: Tue, 15 Apr 2008 21:22:00 +0000 Subject: HTML editing fixes, upgrade to TinyMCE v3.0.6 git-svn-id: https://svn.roundcube.net/trunk@1308 208e9e7b-5314-0410-a742-e7e81cd9613c --- .../spellchecker/classes/TinyPspell.class.php | 64 ---------------------- 1 file changed, 64 deletions(-) delete mode 100644 roundcubemail/program/js/tiny_mce/plugins/spellchecker/classes/TinyPspell.class.php (limited to 'roundcubemail/program/js/tiny_mce/plugins/spellchecker/classes/TinyPspell.class.php') diff --git a/roundcubemail/program/js/tiny_mce/plugins/spellchecker/classes/TinyPspell.class.php b/roundcubemail/program/js/tiny_mce/plugins/spellchecker/classes/TinyPspell.class.php deleted file mode 100644 index 21fb19448..000000000 --- a/roundcubemail/program/js/tiny_mce/plugins/spellchecker/classes/TinyPspell.class.php +++ /dev/null @@ -1,64 +0,0 @@ -lang = $lang; - $this->mode = $mode; - $this->plink = false; - $this->errorMsg = array(); - - if (!function_exists("pspell_new")) { - $this->errorMsg[] = "PSpell not found."; - return; - } - - $this->plink = pspell_new($this->lang, $this->spelling, $this->jargon, $this->encoding, $this->mode); - } - - // Returns array with bad words or false if failed. - function checkWords($wordArray) { - if (!$this->plink) { - $this->errorMsg[] = "No PSpell link found for checkWords."; - return array(); - } - - $wordError = array(); - foreach($wordArray as $word) { - if(!pspell_check($this->plink, trim($word))) - $wordError[] = $word; - } - - return $wordError; - } - - // Returns array with suggestions or false if failed. - function getSuggestion($word) { - if (!$this->plink) { - $this->errorMsg[] = "No PSpell link found for getSuggestion."; - return array(); - } - - return pspell_suggest($this->plink, $word); - } -} - -// Setup classname, should be the same as the name of the spellchecker class -$spellCheckerConfig['class'] = "TinyPspell"; - -?> \ No newline at end of file -- cgit v1.2.3