summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/utils/spell.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-24 13:27:43 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-24 13:27:43 +0000
commit49d2876be2d890265dded1aa87ac2c01c25ff362 (patch)
treec97eb5e01a7e90a0afe51200a9c58d9d49b7d1d9 /roundcubemail/program/steps/utils/spell.inc
parent9b978b989e0dc418d43a12d95b4c6716108a7f50 (diff)
- Use built-in spellchecker instead of a PHP files of spellchecker plugin in TinyMCE
git-svn-id: https://svn.roundcube.net/trunk@3784 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/utils/spell.inc')
-rw-r--r--roundcubemail/program/steps/utils/spell.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/utils/spell.inc b/roundcubemail/program/steps/utils/spell.inc
index d0fbcb9e4..3778865ac 100644
--- a/roundcubemail/program/steps/utils/spell.inc
+++ b/roundcubemail/program/steps/utils/spell.inc
@@ -18,11 +18,15 @@
*/
+// max. number of suggestions for one word
+define('MAX_SUGGESTIONS', 10);
+
+$tiny = !empty($_GET['tiny']) ? 'html_' : '';
+
if ($spell_engine = $RCMAIL->config->get('spellcheck_engine', 'googie')) {
- include('spell_'.$spell_engine.'.inc');
+ include('spell_'.$tiny.$spell_engine.'.inc');
}
header('HTTP/1.1 404 Not Found');
exit;
-