This is a migrated thread and some comments may be shown as answers.

Spell Checker Dialog Based

5 Answers 134 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 18 Jan 2011, 08:25 PM
Hi!

Is there any way to make the spell checker work like the RadSpell Control when using your Html Editor?
Meaning, working like a word like one with the dialog opening up?

I've read in one of your docs that this can be possible by adding the following line to the tools.xml:
<tool name="SpellCheck" />

Instead of:
<tool name="AjaxSpellCheck" />

However it is not working.
A button appears with an exclamtion sign image and when you click on it it says "The command SpellChecker is not implemented yet"

I've tried making a customized button and calling the RadSpell control but I've been having problems when changing back the corrected text.

I'll really appreciate your help on this,
Thanks in advance for your support.

Kind regards

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 20 Jan 2011, 02:03 PM
Hello Victor,

Please, see the following KB article which demonstrates the requested feature: Using RadSpell "Prometheus" dialog with RadEditor "Prometheus" as a custom tool.

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Victor
Top achievements
Rank 1
answered on 25 Jan 2011, 10:58 PM

Another Question regarding the Spell Checker Dialog Based.
Is it possible to change the style used by the misspelled word?
When a word is found misspelled by the spell checker it appears bold and red underlined, however I would like to know if there's any way to highlight it?

I saw that there's a way to do this when you use the inline spell checker but I want to know if there is any way at all to do it for the dialog based one.
I've been trying to do it using jquery but it seems that the control is rendered encrypted not allowing to catch when the dialog buttons are pressed.

I really need to change this style so any orientation will be highly appreciated.

Thanks in advance for your support.

Kind regards.

0
Rumen
Telerik team
answered on 28 Jan 2011, 12:40 PM
Hi Victor,

To achieve your scenario, create a JS file, save the following content in it:

Telerik.Web.UI.Spell.SpellProcessor.prototype.currentErrorContent = function () {
    var currentWord = this.currentBadWord();
    return this.startString(this.get_currentBadWordIndex(), true) +
            "<a style='border-bottom: 1px dotted lime;font-weight: bold;' id=" + this.highlightedElementId() + ">" +
            currentWord.wordString +
            "</a>" +
            this.endString(this.get_currentBadWordIndex(), true);
}

and load the JS file through the DialogsScriptFile property of RadSpell, e.g.

<telerik:RadSpell ID="RadSpell1" runat="server" ControlToCheck="TextBox1" DialogsScriptFile="HighglightTypo.js" />
<asp:TextBox ID="TextBox1" runat="server">asdasdasa dadas dasdasds</asp:TextBox>

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Victor
Top achievements
Rank 1
answered on 02 Feb 2011, 08:36 PM

Hi again,

I have another question;
Sorry for keeping this forum trend alive, it’s just that our client keeps asking for more and more things every time, but I'm sure you'll understand.
This time we've been requested to use a richer dictionary. I was reading that there's a way to use MS Word dictionary but I couldn't find any instructions on how to do that besides just changing  SpellCheckProvider ="MicrosoftWordProvider" which by the way throws an exception saying : "Could not load assembly 'MSWordAdapter'"

So is there any document you have on how to achieve this?

I’ve read also that I will need to have MS Word Installed in the server so we can use the dictionary, so could you please let me know what exactly do I need to have installed to use it? I mean which version of MS Word? Do we need to install all office suite or just word, etc?

And finally, If I use open office’s dictionary instead of word, is there any way to do that?  I’m asking this because I have a file named “en-us.dic” but I see that your control only accepts “ *.tdf ” files.

Thanks again for all your support.

Regards.

0
Rumen
Telerik team
answered on 04 Feb 2011, 04:51 PM
Hello Victor,

My suggestion is to not use MS Word spellchecking because of its huge impact on the server that it will produce. If multiple users use the Word dictionary at the same time, this could use all the server resources. Instead of it, use the recently introduced OpenOffice spellcheck provider as explained in the following sticky forum thread: RadSpell supports NHunspell and OpenOffice dictionaries.

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Victor
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Victor
Top achievements
Rank 1
Share this question
or