Intersoft Support Center

Use SpellChecker on Editable IFRAME

WebSpellChecker provides a method to implement spell checker with red wave highlight.

In this topic, you will learn how to implement spell checker.

To implement spell checker with red wave highlight

  1. Create an editable IFRAME.
  2. Drag HTML button and WebSpellChecker controls to the WebForm.
  3. Set WebSpellChecker’s TargetControlId property to IFRAME’s id and TargetControlIdValue to innerHTML.
  4. Create a function called AddSpellChecker() and use CheckSpell() method to implement spell checker.
    JavaScript Copy Code
    function AddSpellChecker()
    {    
       var sp = ISGetObject("WebSpellChecker1");    
       var text = sp.CheckSpell();
    }

  5. Invoke AddSpellChecker() function from HTML button.

Previous Next