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

[Solved] Spell Checking

4 Answers 228 Views
Editor
This is a migrated thread and some comments may be shown as answers.
skysailor
Top achievements
Rank 1
skysailor asked on 20 Sep 2007, 12:27 AM
PLEASE tell me that spell checking is supported with the new RadEditor Prometheus. It doesn't seem to work in the demos.

4 Answers, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 20 Sep 2007, 04:55 AM
I'm guessing that the this wouldn't have been an easy thing to implement but at the same time I'll give the telerik people the benefit of the doubt that it will be implemented very very quickly.
0
skysailor
Top achievements
Rank 1
answered on 20 Sep 2007, 05:11 AM
I just hope the SpellChecking is one of the things they were planning to implement in this release and it is just a bug. I have not seen any mention anywhere that spell checking would not be implemented. And even some statements that it was a feature of the new RadEditor. If it is NOT implemented then I'm in a bit of a pickle for my project!!
0
James Stuart
Top achievements
Rank 1
answered on 20 Sep 2007, 01:12 PM
I too need a quick answer on this.
0
Valeri Hristov
Telerik team
answered on 20 Sep 2007, 02:40 PM
Hi guys,

RadSpell was only partially ported in RadControls Prometheus and that's why it was not included in the official Q2 release. The sample below demonstrates how to use the "old" RadSpell with RadEditor Prometheus:
<div>
<asp:scriptmanager id="ScriptManager1" runat="server" />
<rads:radspell id="RadSpell1" runat="server" controltocheck="RadEditor1" />
<telerik:radeditor runat="server" id="RadEditor1">
 <content>
  There are somee miztakes in this text
 </content>
</telerik:radeditor>
<script type="text/javascript">
var _htmlElementTextSource = HtmlElementTextSource;
var PrometheusTextSource = function(editor)
{
 this._editor = editor;
 this.GetText = function() { return this._editor.get_Html(); };
 this.SetText = function(value) { this._editor.set_Html(value); };
}
HtmlElementTextSource = function(element)
{
 this.source = element.control && element.control.get_Html ? new PrometheusTextSource(element.control) : new _htmlElementTextSource(element);
 this.GetText = function() { return this.source.GetText(); };
 this.SetText = function(value) { return this.source.SetText(value); };
}
</script>
</div>

example with a custom tool:
<div>
<asp:scriptmanager id="ScriptManager1" runat="server" />
<rads:radspell id="RadSpell1" runat="server" buttontype="none" />
<telerik:radeditor runat="server" id="RadEditor1">
 <tools>
  <telerik:editortoolgroup>
   <telerik:editortool name="spellcheck" />
  </telerik:editortoolgroup>
 </tools>
 <content>
  There are somee miztakes in this text
 </content>
</telerik:radeditor>
<script type="text/javascript">
Telerik.Web.UI.Editor.CommandList.SpellCheck = function(commandName, editor)
{
 var spell = GetRadSpell('<%= RadSpell1.ClientID %>');
 spell.SpellCheck(new PrometheusTextSource(editor));
 return false;
}
var PrometheusTextSource = function(editor)
{
 this._editor = editor;
 this.GetText = function() { return this._editor.get_Html(); };
 this.SetText = function(value) { this._editor.set_Html(value); };
}
</script>
</div>


However, the inline spellcheck mechanism will not be available in RadEditor Prometheus before SP1, which is expected in a couple of weeks. We will do our best to provide both inline and dialog spell check for SP1, but currently I cannot promise the second mode (dialog).

Best wishes,
Valeri Hristov (Senior Developer, MCSD)
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
skysailor
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
skysailor
Top achievements
Rank 1
James Stuart
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or