The following code snippet show how intergrate NetSpell with FreeTextBox.
Download the latest version of FreeTextBox and NetSpell.
Copy NetSpell.SpellChecker.dll to the bin folder and add the following files to the same folder as default.aspx for FreeTextBox.
- spell.css
- spell.js
- SpellCheck.aspx
Copy the dic folder to the FreeTextBox folder. Then modify the web.config file so the path to the dic folder matches.
<configuration>
<appSettings>
<add key="DictionaryFolder" value="dic" />
</appSettings>
</configuration>
Modify Default.aspx to look like this
<script language="JavaScript" src="spell.js" type="text/javascript"></script>
<FTB:FREETEXTBOX id="FreeTextBox1" runat="Server">
<TOOLBARS>
<FTB:TOOLBAR runat="server">
<FTB:NetSpell runat="server" />
</FTB:TOOLBAR>
</TOOLBARS>
</FTB:FREETEXTBOX>
Now when you run the web site there should be a new toolbar that has a spell check button. When the spell check button is clicked, NetSpell should load and start checking the text in the FreeTextBox.
You can look in the demo\Demo.Web.FreeTextBox folder of the latest package of NetSpell for an example of how to integrate NetSpell with FreeTextBox.
3.x UPDATE:
As of FreeTextBox 3.0, NetSpell is intergrated. The sample code above has been update to reflect what is needed in 3.0
One step that's missing is to make sure you add:
<script language="JavaScript" src="spell.js" type="text/javascript"></script>
<script language="JavaScript">
</script>
To the 'head' section of the .ASPX file the FreeTextBox is on which is using NetSpell.
Thanks,
Steve
Sorry, the previous comment had an extra script tag. You only need to add:
<script language="JavaScript" src="spell.js" type="text/javascript"></script>
Thanks,
Steve
i have tried to include netspell with freetextbox Control (3.3.1) which have integrated netspell.
it works fine in IE but it gives me error in mozilla like
Error: FreeTextBox1_designEditor is not defined
Source File: localhost/.../spell.js Line: 29
the NETSpell is working smoothly and and is perfect but i want a spell check plugin which can do spellcheck in an editor like AJAXControlTool
Kit Editor with each misspelled word getting underlined by red woggly lines and when right click on that gives the option ..the same as coming in FreeTextBox
Line: 135
Error: 'document.SpellingForm' is null or not an object
What is going wrong?