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

RadSpell insinde a user control

1 Answer 39 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 05 Feb 2009, 01:54 PM
Hi,
I want to implement RadSpell to work with the RadEditor, inside a user control.
I cut and paste the code from a previous thread, as follows:

<telerik:radspell id="spell1" runat="server" buttontype="none" />
<telerik:radeditor runat="server" id="RadEditor1" EditModes="All" Height="400px" Skin="Default" StripFormattingOnPaste="None" StripFormattingOptions="None" ToolbarMode="Default" Width="680px">
 <tools>
  <telerik:editortoolgroup>
   <telerik:editortool name="SpellCheck" />
  </telerik:editortoolgroup>
 </tools>
 <content>

  There are somee miztakes in this text
 </content>
    <SpellCheckSettings SpellCheckProvider="PhoneticProvider" WordIgnoreOptions="RepeatedWords" />
</telerik:radeditor>
<script type="text/javascript">
Telerik.Web.UI.Editor.CommandList.SpellCheck = function(commandName, editor)
{
 var spell = GetRadSpell('<%= spell1.ClientID %>');
 spell.spellCheck(new PrometheusTextSource(editor));
 return false;
}
var PrometheusTextSource = function(editor)
{
 this._editor = editor;
 this.get_text = function() { return this._editor.get_html(); };
 this.set_text = function(value) { this._editor.set_html(value); };
}
</script> 

However, when when I click on the spell check button, I get the error 'The command SpellCheck is not implemented yet.'. When I view the source, I can't find any reference to the javascript function.
If I implement the same code outside the user control, everything works fine.

Can you suggest what I'm doing wrong, and how to put it right?

Thanks.

Richard

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 10 Feb 2009, 09:13 AM
Hi Richard,

I tried to reproduce the problem but without success. For your convenience I have attached my test project and a video demonstrating my test. If you are unable to reproduce the problem, please modify the project until it fits your scenario and you are able to recreate the issue. After that open a support ticket and send me the project for examination.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Spell
Asked by
Richard
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or