Knowledgebase Home Page  >  RapidSpell Web ASP.NET  >  Rich/HTML Textboxes
Search the Knowledge Base
How do I use RapidSpell with CuteEditor to spell check rich text?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=93&catId=56

Options

Print this page
Email this to a friend

(This article is for Control Usage of RapidSpell Web ASP.NET)

 

Version 3.4 Up

 

In v3.4 upwards you only need to;

 

1. Set the TextComponentInterface to Automatic

 

2. Set the RapidSpellWInline.TextComponentID or RapidSpellWebLauncher.TextComponentName to the ID of the control.

 

3. Add, ValidateRequest="false" to the page tag of the popup page, and/or RapidSpellWInlineHelper page.

 

Note:  If you are using .NET 4 or higher you will need to add <httpRuntime requestValidationMode="2.0" /> in web.config under <system.web>

 

The spell checker should then automatically set itself up for your textbox.  If it doesn't work, please see the information below.

 

 

Version 3.3 Down

In order to use RapidSpell Web ASP.NET as the spell checker for CuteEditor, please follow these simple steps.
 
1. Paste this code onto the page with Cute 

<script type="text/javascript">
function RSCustomInterface(tbElementName){
this.tbName = tbElementName;
this.getText = getText;
this.setText = setText;

function getText(){
//return the text from the text component named this.tbName,
//this may be HTML formatted text
return eval(this.tbName+"_Frame.document.body.innerHTML");
}


function setText(text){
//set the text in the text component to the text argument
//this may be HTML formatted text
eval(this.tbName+"_Frame.document.body.innerHTML = text");
eval(this.tbName+".focus()");
}


}
</script>

2. Set TextComponentInterface to "Custom" in RapidSpellWebLauncher
 
3. Set IgnoreXML to "true" in RapidSpellWebLauncher
 
4. Set TextComponentName to ID of the CuteEditor control, eg. "richEditor"
 
5. In the popup add ValidateRequest="false" to the @Page attribute in line 1 (to avoid getting the error: "A potentially dangerous Request.Form value was detected from the client.")

Note:  If you are using .NET 4 or higher you will need to add <httpRuntime requestValidationMode="2.0" /> in web.config under <system.web>

If you do experience any problems please email support@keyoti.com and we'll be glad to help.


Related Questions:

Attachments:

No attachments were found.