From f4f6291ec16bd2fe368f868e667ea2071c514098 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 24 Jun 2010 09:27:43 -0400 Subject: [PATCH] - Use built-in spellchecker instead of a PHP files of spellchecker plugin in TinyMCE --- program/steps/utils/spell.inc | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/program/steps/utils/spell.inc b/program/steps/utils/spell.inc index d0fbcb9..3778865 100644 --- a/program/steps/utils/spell.inc +++ b/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; - -- Gitblit v1.9.1