PHPSpellCheck can be set to spell check all the visual HTML Editors (WYSIWYGs) in the page by setting the Fields property of the SpellCheckButton Class to "EDITORS"
Inline spellchecking using the SpellAsYouType Class is not possible for Editors.
PHPSpellCheck is Compatible with over 200 Rich HTML Editors including:
$mySpell->Fields = "EDITORS";
<div id='MyEnclosingDiv'> ...Editor's Textarea / Code... </div> <?php $mySpell = new SpellCheckButton(); $mySpell->InstallationPath = "/phpspellcheck/"; $mySpell->Fields = "MyEnclosingDiv"; echo $mySpell->SpellImageButton(); ?>
In some cases - you may wish to target only 1 rich editor. Due to their nature - most rich editors themselves do not have ID attributes to allow us as developers to access them. To access such an editor - just use the ID of any HTML element that wraps the editor.
$mySpell->Fields = "IFRAME:0";
We can also access almost any Rich Editor because they are modified iFrame.
The best way is to use this notation:
Note: The presence of iFrames in your page may offset the index.