summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/js/tinymce/plugins/spellchecker/config.php
blob: a528565a33f9ef2125cecc92f29e0e12d30d5245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
	$spellCheckerConfig = array();

	// General settings

	$spellCheckerConfig['enabled'] = true;

	// Pspell shell specific settings

	$spellCheckerConfig['tinypspellshell.aspell'] = '/usr/bin/aspell';
	$spellCheckerConfig['tinypspellshell.tmp'] = '/tmp';

	// Default settings

	$spellCheckerConfig['default.language'] = 'en';
	$spellCheckerConfig['default.mode'] = PSPELL_FAST;

	// Normaly not required to configure

	$spellCheckerConfig['default.spelling'] = "";
	$spellCheckerConfig['default.jargon'] = "";
	$spellCheckerConfig['default.encoding'] = "";

	// Spellchecker class use

	if ( function_exists('pspell_new') )
		require_once("classes/TinyPspell.class.php"); // Internal PHP version


	elseif ( file_exists($spellCheckerConfig['tinypspellshell.aspell']) )
		require_once("classes/TinyPspellShell.class.php"); // Command line pspell


	else
		require_once("classes/TinyGoogleSpell.class.php"); // Google web service

?>