How do we implement the dialog based Prometheus RadSpell with the Prometheus Editor using jscript? The important distinction between the version provided on this site for a previous version of spellcheker are in the get_text() and set_text() methods.
<div> |
<telerik: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.set_textSource(new PrometheusTextSource(editor)) |
spell.startSpellCheck(); |
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> |
</div> |