# Plugin: spellchecker

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.

### Installation Instructions

1. Download the spellchecker plugin from the TinyMCE website.
2. Copy the spellchecker directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).
3. Add plugin to TinyMCE plugin option list example: plugins : "spellchecker".
4. Add the button name to button list, example: theme_advanced_buttons3_add : "spellchecker".

### Spellchecker plugins/modes

TinyMCE Spellchecker currently supports 3 modes. These are available as configurable PHP classes.

- TinyPspell - Run pspell within PHP. (PHP needs to be compiled with pspell support)
- TinyPspellShell - Run pspell as a command line shell application.
- TinyGoogleSpell - Use HTTP proxy bridge to connect to a Google XML Web Service.

Use this as the value for the the languages option when you are using the GoogleSpell class: +English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv

### Initialization Example

    tinyMCE.init({
    	theme : "advanced",
    	mode : "textareas",
    	plugins : "spellchecker",
    	theme_advanced_buttons3_add : "spellchecker",
    	spellchecker_languages : "+English=en,Swedish=sv",
    	spellchecker_word_separator_chars : "\\s!\"#$%&()*+,-./:;<=>?@[\]ˆ_{|}§©«®±¶·¸»¼½¾¿×÷¤\u201d\u201c"
    });

### Options

[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!"#$%&()*+,-./:;<=>?@[\]^_{|}§©«®±¶·¸»¼½¾¿×÷¤\u201d\u201c.