By settings fields to "editors" ASPSpellCheck automatically targets all rich editors on the page.
Source Code
<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"--> <textarea name="MyEditor" id="MyEditor"> Any TextArea Which is overwritten by a Rich Editor Such as CKEditor, FCK or Tiny MCE Editor. </textarea> <% dim myLink set myLink = new AspSpellLink myLink.fields="editors" response.write myLink.imageButtonHTML("","","") ''Adds a button set myLink=nothing %>
Tutorial
- When fields is "editors" - ASPSpellCheck will automatically spellcheck rich HTML areas. ASPSpellCheck is aware of almost all available rich editors - and recognizes them automatically.
- SpellAsYouType is not available - as it would risk leaving unwanted markup in your editor.
To Spell-Check a Single Rich Editor:
To spellcheck just 1 rich editor - you cannot set field to Id of the textarea it replaces, because most editors are unaware of changes to the fields that they override.
- Put a span around the textarea.
- Set fields to the id of that span
Alternatively, you can pass the id of the iFrame created by the editor into fields. The tool FireBug can help you find the id.