diff options
author | thomascube <thomas@roundcube.net> | 2008-08-15 21:47:31 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-08-15 21:47:31 +0000 |
commit | 4ca10b8d511d85a4d575af355b0a6739d5a05958 (patch) | |
tree | 236a88fa81e490b751f30a8205b142866503787d /program/js/tiny_mce/plugins/spellchecker/config.php | |
parent | d4c01cadbdcd871f6d1c289c77dbd399d202aefd (diff) |
Enable spellchecker for HTML editor
Diffstat (limited to 'program/js/tiny_mce/plugins/spellchecker/config.php')
-rwxr-xr-x | program/js/tiny_mce/plugins/spellchecker/config.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/program/js/tiny_mce/plugins/spellchecker/config.php b/program/js/tiny_mce/plugins/spellchecker/config.php new file mode 100755 index 000000000..827749e48 --- /dev/null +++ b/program/js/tiny_mce/plugins/spellchecker/config.php @@ -0,0 +1,33 @@ +<?php
+
+ /** start RoundCube specific code */
+
+ define('INSTALL_PATH', preg_replace('/program\/js\/.+$/', '', getcwd()));
+ require_once INSTALL_PATH . 'program/include/iniset.php';
+
+ $rcmail_config = new rcube_config();
+ $config['general.engine'] = $rcmail_config->get('spellcheck_engine') == 'pspell' ? 'PSpell' : 'GoogleSpell';
+
+ /** end RoundCube specific code */
+
+ // General settings
+ //$config['general.engine'] = 'GoogleSpell';
+ //$config['general.engine'] = 'PSpell';
+ //$config['general.engine'] = 'PSpellShell';
+ //$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
+
+ // PSpell settings
+ $config['PSpell.mode'] = PSPELL_FAST;
+ $config['PSpell.spelling'] = "";
+ $config['PSpell.jargon'] = "";
+ $config['PSpell.encoding'] = "";
+
+ // PSpellShell settings
+ $config['PSpellShell.mode'] = PSPELL_FAST;
+ $config['PSpellShell.aspell'] = '/usr/bin/aspell';
+ $config['PSpellShell.tmp'] = '/tmp';
+
+ // Windows PSpellShell settings
+ //$config['PSpellShell.aspell'] = '"c:\Program Files\Aspell\bin\aspell.exe"';
+ //$config['PSpellShell.tmp'] = 'c:/temp';
+?>
|