be64e8d0e6e0e99b93fb3cf17a32a99acb7f4bf9
[moodle.git] / lib / editor / tinymce / tiny_mce / 3.4.5 / plugins / spellchecker / config.php
1 <?php
2 /**
3  * config.php
4  *
5  * @package MCManager.includes
6  */
8 require_once(dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))))).'/config.php'); // moodle hack
9 @error_reporting(E_ALL ^ E_NOTICE); // hide notices even if Moodle is configured to show them
11         // General settings
12         $config['general.engine'] = get_config('editor_tinymce', 'spellengine') ? get_config('editor_tinymce', 'spellengine') : 'GoogleSpell';
13         //$config['general.engine'] = 'PSpell';
14         //$config['general.engine'] = 'PSpellShell';
15         //$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
17     if ($config['general.engine'] === 'PSpell' or $config['general.engine'] === 'PSpellShell') {
18         // PSpell settings
19         $config['PSpell.mode'] = PSPELL_FAST;
20         $config['PSpell.spelling'] = "";
21         $config['PSpell.jargon'] = "";
22         $config['PSpell.encoding'] = "";
24         // PSpellShell settings
25         $config['PSpellShell.mode'] = PSPELL_FAST;
26         $config['PSpellShell.aspell'] = $CFG->aspellpath;
27         $config['PSpellShell.tmp'] = '/tmp';
29         // Windows PSpellShell settings
30         //$config['PSpellShell.aspell'] = '"c:\Program Files\Aspell\bin\aspell.exe"';
31         //$config['PSpellShell.tmp'] = 'c:/temp';
32     }
33 ?>