Nobody likes content with spelling errors. Our team at TinyMCE is motivated to help your users create error-free content. Which is why we have several options to help you bring spell checking capabilities to your users.
Browser-based spell checking
The first and easiest to implement option is to utilize the browser's native spell check functionality by assigning the browser_spellcheck
configuration option the value of true
. Depending on the right click / context behavior you want, you may need to enable the contextmenu
plugin.
tinymce.init({
selector: 'textarea', // change this value according to your HTML
browser_spellcheck: true,
contextmenu: false
});
PHP Spellchecker component
You can also use TinyMCE's PHP Spellchecker component, which you can download here. To view the complete changelog history, view this txt file. The TinyMCE's PHP Spellchecker component requires a little more work than the browser-based option, being a server-side script.
This plugin enables you to use Enchant or PSpell on the backend of your server to spell check contents within the TinyMCE editor.
Installation steps for the default Enchant engine
- Make sure you enable Enchant in your PHP.
- Download the TinyMCE Spellchecker for PHP package. (Direct download).
- Unpack the package in the your
/path/to/tinymce/plugins/spellchecker
directory. - Configure TinyMCE to use the spell checker by enabling the
spellchecker
plugin. - Configure the
spellchecker_rpc_url
to'spellchecker.php'
. - Download word lists and place them in the
/dicts
directory for example "sv_SE.dic, sv_SE.aff".
Example
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'spellchecker',
toolbar: 'spellchecker',
spellchecker_rpc_url: 'spellchecker.php'
});
Please see the Spell Checker Plugin for advanced configuration options.
TinyMCE Spellchecker Pro plugin
For developers requiring a robust enterprise-grade spell check as-you-type functionality, you need the Spell Checker Pro plugin. Spell Checker Pro requires both a client-side plugin to be configured and a server-side component to be installed and configured.
Full documentation can be found in the TinyMCE Enterprise documentation for Spelling. Learn more about TinyMCE Enterprise here.
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Can't find what you're looking for? Let us know.
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.