Nanospell Spell Checking Software Components
JavaScript jQuery CKEditor TinyMCE PHP ASP.Net Classic ASP

PHP SpellChecker

PHP Spell Check Rich HTML Editors

  1. Spell-Checking All Rich Editors In The Page
  2. Spell-Checking A Specific Rich Editor
  3. Spell-Checking A Specific Rich Editor By its Iframe

Spell Check HTML Editors - PHP Spell Check


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:


Spell-Checking All Rich Editors In The Page

$mySpell->Fields = "EDITORS";

Spell-Checking A Specific Rich Editor

<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.

Spell-Checking A Specific Rich Editor By its Iframe

$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.