Using the javascript API and adding to server dictionary

14 views
Skip to first unread message

muzi...@hotmail.com

unread,
Feb 19, 2015, 3:06:42 PM2/19/15
to aspne...@googlegroups.com
I am using your spell button to run the client side spell checker, but I am also attaching an onclientclick to a server side button to perform a spell check on a textbox before submitting a form for a save.

My javascript function has the following:
var mySpell = new LiveSpellInstance();
mySpell.Fields = "txtNarrative";
mySpell.AddWordsToDictionary = "Server";
mySpell.ShowSummaryScreen = false;
mySpell.Language = "English (International)";
mySpell.ServerModel = "aspx";
mySpell.CheckInWindow();

However, the spell checker dialog displays with a 'Add Personal' button instead of 'Add Word' button to add custom words to the server file.

I do have the following in my web.config as well:
<add key="aspnetspell_usecentraldictionary" value="true"/>

What else am I missing to get the 'Add Word' button to add custom words to the custom.txt on the server?

muzi...@hotmail.com

unread,
Feb 20, 2015, 9:16:14 AM2/20/15
to aspne...@googlegroups.com, muzi...@hotmail.com
Chaned text of property to all caps "SERVER" and it worked now.
Reply all
Reply to author
Forward
0 new messages