4 Answers, 1 is accepted
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
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
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