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

[Solved] MVC Editor with Spellcheck.

16 Answers 351 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aaron
Top achievements
Rank 1
Aaron asked on 22 Dec 2010, 01:35 AM

Just trying to implement the same control that you have hosted here for the forum, MVC Editor with SpellCheck. I can get a few peices of it working and I see references to "just press F7, the Ajax Spellcheck is embeded". But I can't find anyway to make it work. I currently have a mix of MVC and RadSpell.

<% Html.Telerik()
        .Editor().Tools(tools => tools.Clear())
        .Name("MyEditor")
        .Render();  %>
<telerik:RadSpell runat="server" ControlToCheck="MyEditor-value"  IsClientID="true" HandlerUrl="/Telerik.Web.UI.DialogHandler.aspx" >
 </telerik:RadSpell>

In firefox this will at least get me a running spellcheck dialog. However after it finds and "corrects" the spelling it doesn't actually update the textarea with the corrected text. In IE it just throws a javascript error and never really loads the check dialog.

Is there a working sample of using spellcheck on the MVC Editor using the MVC version 2010.2.930 build.

IE8/9
C#
Asp.Net MVC 2

Aaron

16 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 22 Dec 2010, 09:50 AM
Hi Aaron,

 I am sending a sample project showing how to use RadSpell for ASP.NET Ajax in order to provide spell checking for Telerik Editor for ASP.NET MVC.

Greetings,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Aaron
Top achievements
Rank 1
answered on 23 Dec 2010, 07:42 AM
This was it:
<script type="text/javascript">
    function onLoad() {
        $('iframe', this).attr('id', this.id + 'Iframe');
    }
</script>

That was what IE was complaining about, the missing iFrame id.

Really appreciate it.

Aaron
0
Emily Hatch
Top achievements
Rank 1
answered on 17 Mar 2011, 10:08 PM
I am using the above code and it works great as long as my form is not in an user control.  When the form, even this example, is moved to an user control, nothing happens when you click on the spell checking button.  After further troubleshooting, I found that the RadScriptManager does not seem to be producing the necessary scripts to launch (and use) the spell checking code.  Is this a known problem?  Am I missing something?  Any help would be much appreciated.

Thanks!
Emily
0
Atanas Korchev
Telerik team
answered on 18 Mar 2011, 08:37 AM
Hi Emily Hatch,

 Those are not known problems. Could you let us know what needs to be done in order to replicate them? You can modify the attached working project and send it back.

Regards,
Atanas Korchev
the Telerik team
0
Emily Hatch
Top achievements
Rank 1
answered on 18 Mar 2011, 05:57 PM
I have attached the project with the changes needed to reproduce the problem.  We are using 3.5 however that doesn't appear to be the cause as the code works fine sans the user control.  I moved only the form to the user control and the problem appears.

Thanks for your assistance,
Emily
0
T. Tsonev
Telerik team
answered on 19 Mar 2011, 10:59 AM
Hi Emily,

The RadScriptManager indeed doesn't work well when placed in a partial view. To work around this I've moved it to the top of the master page and included a dummy RadSpell, just so it will register its scripts:

<body>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">       
    </telerik:RadScriptManager>
 
    <%--Used only to include the scripts--%>
    <telerik:RadSpell id="dummySpell" runat="server" Visible="false" />
 
...

I've attached the modified project.

Best Regards,
Tsvetomir Tsonev
the Telerik team
0
Steve
Top achievements
Rank 1
answered on 13 Jun 2011, 08:49 PM
I've got the RadSpell Checker working in my asp.net mvc2 project, thanks to this post!

I'm calling GetRadSpell('<%= RadSpell.ClientID %>');, but it just returns null. I'd like to call startSpellCheck client side.

Thanks in advance.

<

 

 

telerik:RadSpell ID="RadSpell" OnClientCheckFinished="checkFinished" runat="server" ControlToCheck="MessageBodyIframe" IsClientID="true" ButtonType="ImageButton" SpellCheckProvider="PhoneticProvider" HandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" RegisterWithScriptManager="false" />

 

0
Atanas Korchev
Telerik team
answered on 14 Jun 2011, 07:45 AM
Hello Steve,

 It is not clear where you are calling this code. Could you paste some code so we can try it? Ideally you can modify the attached project and send it back.

Greetings,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Marc Simkin
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 29 Jul 2011, 03:25 PM
Can this be intergraded as a custom tool on the MVC editor?
0
Dimo
Telerik team
answered on 29 Jul 2011, 03:57 PM
Hi Marc,

Theoretically yes - you have the ability to retrieve and change the Editor's value via the client API, so there is no problem to use another component to manipulate (spell-check) the value.

http://demos.telerik.com/aspnet-mvc/editor/customtools

Kind regards,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Marc Simkin
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 29 Jul 2011, 04:35 PM
Hi Dimo:

Since I'm using the razor engine, I know I need to create a webform partial view for the spell control.  Is there a way that I can jut put the script files either in the mvc script manager, or in script tags to download?

I would like to avoid converting razor pages to web forms, and mixing and matching syntax.

thanks

marc
0
Atanas Korchev
Telerik team
answered on 01 Aug 2011, 08:09 AM
Hi Marc Simkin,

RadSpell will work only in a web forms view because it is ASP.NET WebForms control. 

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Prince
Top achievements
Rank 1
answered on 08 Aug 2011, 10:38 AM
Is there any intention to have a spell checker built into the mvc editor like the ajax control?
0
Travis
Top achievements
Rank 1
answered on 21 Sep 2011, 05:06 PM
Are there any plans to incorporate spellcheck into the MVC editor?
0
Dimo
Telerik team
answered on 22 Sep 2011, 07:34 AM
Hello,

Currently we have no short-term plans to implement spell-checking mechanism in the MVC Editor.

Best wishes,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Travis
Top achievements
Rank 1
answered on 22 Sep 2011, 03:31 PM
Sad.  Guess I will have to build my own. 
Tags
Editor
Asked by
Aaron
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Aaron
Top achievements
Rank 1
Emily Hatch
Top achievements
Rank 1
T. Tsonev
Telerik team
Steve
Top achievements
Rank 1
Marc Simkin
Top achievements
Rank 2
Iron
Iron
Veteran
Dimo
Telerik team
Prince
Top achievements
Rank 1
Travis
Top achievements
Rank 1
Share this question
or