Using Foundeo Spell Checker with FCKeditor
To add a spell checker button to your FCKEditor HTML form, add the following HTML:
<input type="button"
onclick="spell('FCKeditorAPI.Instances.yourFCKEditorInstanceNameHere.EditorDocument.body.innerHTML');"
value="Spell Check" />
Replace yourFCKEditorInstanceNameHere with the name of your FCK editor instance.
Note that you will also need to include our spell.js file.
Does this also work on CKEditor?
We have a CKEditor Spell Checker Plugin that you can use with CKEditor, it integrates into the CKEditor toolbar.
Does this also work with ColdFusion 8, ColdFusion 9 or ColdFusion 10 RichText CFTextarea Tag?
Yes it does work when cfform format="html", but it does not work with flash forms (cfform format="flash"). Here's an example of how you can use our spell checker with ColdFusion's cftextarea tag:
<cfform action="test.cfm" method="post" format="html" id="MyForm">
<cftextarea richtext="true" name="MyRichText" value="Hello There"></cftextarea>
<script language="javascript" src="/spellchecker/spell.js" type="text/javascript"></script>
<input type="button" onclick="checkFCKSpelling(this.form.MyRichText);" value="Spell Check" />
<input type="submit" />
<script language="javascript">
function checkFCKSpelling(formObj) {
spell('FCKeditorAPI.Instances.' + formObj.id + '.EditorDocument.body.innerHTML');
}
</script>
</cfform>
Note a slightly different technique is required for cftextarea because ColdFusion generates a dynamic the ID for the FCKeditor instance.