3 Answers, 1 is accepted
Hi Roxana,
RadSpell compares the words from the text source it is given with the dictionary it has. If the dictionary has the word, it is not marked as a wrong word and suggestions are not provided. Therefore, if you are missing words you wish to have in the dictionary, you can see how to modify it here: http://www.telerik.com/help/aspnet-ajax/spell-dictionaries-configurator.html.
You an also examine this page to see if the ideas there will help improve the situation on your end: http://www.telerik.com/help/aspnet-ajax/spell-how-to-improper-spelling-suggestion.html.
I also tried with several plurals off the top of my head and things seemed to work fine. I am attaching here a short video from my experiment and here is the code I used. Note that my dictionary is the en-US dictionary that comes with our installation and it resides in ~/App_Data/RadSpell so if you do not have it there, you should copy it over.
<
asp:TextBox
ID
=
"Textbox1"
runat
=
"server"
Text
=
"forums, eggs, people, issues, plurals"
/>
<
telerik:RadSpell
ID
=
"RadSpell1"
runat
=
"server"
ControlToCheck
=
"Textbox1"
/>
Regards, Marin Bratanov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thank you for reply.
The admin functionality to add words in our dictionary it works OK. We can see the words we add in the tdf file. However, the new added words that appear in the tdf file, still trigger the Ajax Spellcheck in the RadEditor.
If we login on website and add a word through the admin feature then go to any RadEditor the spell checker works ok, the added word is not misspelled. If first we run the spell checker and after that add a word through the admin feature the added word is misspelled.
I think the spell checker is caching the file and that's why the new added words are not seen. Is there a way to prevent caching ?
Thank you, Roxana
Hi Roxana,
You can use a custom dictionary to add the desired words. It is simpler (simple txt file with one custom word per row). It is evaluated each time a spell check is invoked.
I am attaching here a short video that demonstrates this behavior.
The default custom dictionary suffix is "-Custom" so for the en-US dictionary the default custom dictionary file name will be en-US-Custom.txt.
Working with txt files is rather simple so you can change the admin logic that lets administrators add words to the dictionary to work with the custom dictionary instead of the tdf dictionary - check if the word is present and if not - just append it.
Regards,
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.