I'm currently writing a plugin to integrate the Netspell ASP.NET utility into the FCK editor, as a replacement for the default two spellchecker options.
THe plugin is currently working, but i stil have hassles trying to pass the fck editor text field as an object to the netspell function. Netspell requires the id of a textbox, iframe, etc to be passed in it's checkSpellingById() function. Currently i'm doing the following:
eSourceField2.value = FCK.EditorDocument.body.innerHTML;
checkSpellingById("eSourceField2");
FCK.EditorDocument.body.innerHTML = eSourceField2.value
Where eSourceField2 is a temporarily hidden field.
This works allright, but is not very nicely coded. I cannot seem to find another way to pass the FCK object id directly to the Netspell function, Tried the following things which wouldn't work:
checkSpellingById(FCKeditorAPI.GetInstance('nameoftheeditor'))
checkSpellingById("FCK.EditorDocument"), etc, all of these things wouldn't work. Any suggestions??
THe plugin is currently working, but i stil have hassles trying to pass the fck editor text field as an object to the netspell function. Netspell requires the id of a textbox, iframe, etc to be passed in it's checkSpellingById() function. Currently i'm doing the following:
eSourceField2.value = FCK.EditorDocument.body.innerHTML;
checkSpellingById("eSourceField2");
FCK.EditorDocument.body.innerHTML = eSourceField2.value
Where eSourceField2 is a temporarily hidden field.
This works allright, but is not very nicely coded. I cannot seem to find another way to pass the FCK object id directly to the Netspell function, Tried the following things which wouldn't work:
checkSpellingById(FCKeditorAPI.GetInstance('nameoftheeditor'))
checkSpellingById("FCK.EditorDocument"), etc, all of these things wouldn't work. Any suggestions??