Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
This plugin adds spellchecker functionality to TinyMCE by providing a new button that performs a AJAX call to a backend PHP page that uses PSpell/ASpell or Google spellchecker.
An unofficial spellchecker plugin for ColdFusion is available on SourceForge.
An unofficial spellchecker plugin with Java implementation is available. It can integrate with JMySpell
<?php
if (function_exists('pspell_new')) {
$pspell_link = pspell_new("en");
if (!pspell_check($pspell_link, "testt")) {
$suggestions = pspell_suggest($pspell_link, "testt");
foreach ($suggestions as $suggestion) {
echo "Possible spelling: $suggestion<br />";
}
}
} else {
echo "pspell is not installed";
}
?>
// General settings
$config['general.engine'] = 'GoogleSpell';
//$config['general.engine'] = 'PSpell';
//$config['general.engine'] = 'PSpellShell';
// 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'] = 'aspell.exe';
//$config['PSpellShell.tmp'] = 'c:/temp';
There are 3 types of spellchecker implementations, that needs to be required/included individually.
| Name | Summary |
|---|---|
| PSpellShell | Uses the command line/shell executable version of PSpell. If this option is to be used in Windows it is necessary to add the path to the "aspell.exe" file to the Windows Path environment variable. In Windows XP this is done by going to Start > Control Panel > System. Select the Advanced tab and click on the "Environment Variables" button. Under "System Variables" add to the Path variable the path: "C:Program FilesAspellbin." Do not include this path in $config['PSpellShell.aspell'] because everything after the space between "Program" and "Files" will be ignored. |
| GoogleSpell | Uses a remote google service. Remember this service might be unavailable if google decides to make it non public. |
| PSpell | Uses the built in PSpell module in PHP. (Needs to be compiled in) |
| Name | Summary |
|---|---|
| PSpell.mode | Default spelling mode, this is a PSpell specific option. PSpell has various modes that makes it more or less exact it has a impact on performance. |
| PSpell.spelling | PSpell specific setting. Enables you to control the spelling parameter of PSpell. (Advanced users only) |
| PSpell.jargon | PSpell specific setting. Enables you to control the jargon parameter of PSpell. (Advanced users only) |
| PSpell.encoding | PSpell specific setting. Enables you to control the encoding parameter of PSpell. (Advanced users only) |
| PSpellShell.aspell | Location of PSpell executable file this option is only used if the TinyPspellShell.class.php file is required/included. |
| PSpellShell.tmp | Location of a writable temp directory. |
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "spellchecker",
theme_advanced_buttons3_add : "spellchecker",
spellchecker_languages : "+English=en,Swedish=sv"
});
| Name | Summary |
|---|---|
| [spellchecker_languages] | Enables you to specify what languages your pspell installation can handle. The value of this option should be a comma separated name value list in the following format name1=value1,name2=value,name3=value where name is the string to present in the menu and the value is a ISO language code like sv or en. If you add a + character infront of the name it will be the default value for the spellchecker. The default value for this option is: +English=en. |
| [spellchecker_word_separator_chars] | This option enables you to specify the word separator characters. The default value for this option is: s!"#$%&()*+,-./:;<=>?@[]^_{|}§©«®±¶·¸»¼½¾¿×÷¤u201du201c. |
| [spellchecker_report_misspellings] | This option enables you to get an alert box with the number of misspelled words, this option is set to false by default. |
| [spellchecker_rpc_url] | URL to back end for example the PHP rpc service document or some custom spellchecker service. This option doesn't need to be specified if you downloaded the PHP Spellchecker package. |