source: subversion/trunk/roundcubemail/program/js/tiny_mce/plugins/spellchecker/config.php @ 1651

Last change on this file since 1651 was 1651, checked in by thomasb, 5 years ago

Enable spellchecker for HTML editor

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1<?php
2
3        /** start RoundCube specific code */
4       
5        define('INSTALL_PATH', preg_replace('/program\/js\/.+$/', '', getcwd()));
6        require_once INSTALL_PATH . 'program/include/iniset.php';
7       
8        $rcmail_config = new rcube_config();
9        $config['general.engine'] = $rcmail_config->get('spellcheck_engine') == 'pspell' ? 'PSpell' : 'GoogleSpell';
10       
11        /** end RoundCube specific code */
12
13        // General settings
14        //$config['general.engine'] = 'GoogleSpell';
15        //$config['general.engine'] = 'PSpell';
16        //$config['general.engine'] = 'PSpellShell';
17        //$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
18
19        // PSpell settings
20        $config['PSpell.mode'] = PSPELL_FAST;
21        $config['PSpell.spelling'] = "";
22        $config['PSpell.jargon'] = "";
23        $config['PSpell.encoding'] = "";
24
25        // PSpellShell settings
26        $config['PSpellShell.mode'] = PSPELL_FAST;
27        $config['PSpellShell.aspell'] = '/usr/bin/aspell';
28        $config['PSpellShell.tmp'] = '/tmp';
29       
30        // Windows PSpellShell settings
31        //$config['PSpellShell.aspell'] = '"c:\Program Files\Aspell\bin\aspell.exe"';
32        //$config['PSpellShell.tmp'] = 'c:/temp';
33?>
Note: See TracBrowser for help on using the repository browser.