Knowledgebase Home Page  >  RapidSpell Web ASP.NET  >  Rich/HTML Textboxes
Search the Knowledge Base
How do I use RapidSpell Web with FreeTextBox version 3?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=113&catId=56

Options

Print this page
Email this to a friend

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 with the "FreeTextBox" v3 follow these instructions (a list of built-in supported text boxes is available here http://www.keyoti.com/products/rapidspell/dotNetWeb/html-text-editors.html)
 
 
RapidSpellWebLauncher
 
1. Paste this code onto the page with FreeTextBox
 
<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+"_Editor.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+"_Editor.document.body.innerHTML = text");
eval(this.tbName+"_Editor.focus()");
}
}
</script>
 
2. Set TextComponentInterface to "Custom" in RapidSpellWebLauncher
 
3. Set IgnoreXML to "true" in RapidSpellWebLauncher
 
4. Set TextComponentName to "FreeTextBox1_designEditor"
 
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."
 
 
RapidSpellWInline
 
1. Paste this code onto the page with FreeTextBox (if you haven't already done so for RapidSpellWebLauncher)
 
<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+"_Editor.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+"_Editor.document.body.innerHTML = text");
eval(this.tbName+"_Editor.focus()");
}
}
</script>
 
2. Set TextComponentInterface to "Custom" in RapidSpellWInline
 
3. Set IgnoreXML to "true" in RapidSpellWInline
 
4. Set TextComponentID to "FreeTextBox1_designEditor"
 
5. In the RapidSpellWInlineHelperPage 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>  
 
 
Example With RapidSpellWebLauncher And RapidSpellWInline
 
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %><%@ Register TagPrefix="rapidspellweb" Namespace="Keyoti.RapidSpell" Assembly="Keyoti.RapidSpellWeb" %><%@ Page language="c#" Codebehind="FreeTextBox.aspx.cs" AutoEventWireup="false" Inherits="RapidSpellWeb_Demo_CSharp.FreeTextBox" %>  <META content=JavaScript name=vs_defaultClientScript>
  <META content="<A href=" name=vs_targetSchema ie5? intellisense schemas.microsoft.com http:>http://schemas.microsoft.com/intellisense/ie5</A>">
<FORM id=Form1 method=post runat="server">

   <RAPIDSPELLWEB:RAPIDSPELLWEBLAUNCHER id=RapidSpellWebLauncher1 style="Z-INDEX: 101; LEFT: 643px; POSITION: absolute; TOP: 35px"
    runat="server" RapidSpellWebPage="popup.aspx" <STRONG>TextComponentName="FreeTextBox1_designEditor" TextComponentInterface="Custom" IgnoreXML="True"</STRONG>
   </RAPIDSPELLWEB:RAPIDSPELLWEBLAUNCHER>

   <RAPIDSPELLWEB:RAPIDSPELLWINLINE id=RapidSpellWInline1 style="Z-INDEX: 102; LEFT: 646px; POSITION: absolute; TOP: 100px"
    runat="server" <STRONG>TextComponentInterface="Custom" IgnoreXML="True" TextComponentID="FreeTextBox1_designEditor"</STRONG> RapidSpellWInlineHelperPage="rswihelper.aspx">
   </RAPIDSPELLWEB:RAPIDSPELLWINLINE>
 
Note: the RapidSpellWInline example works with RapidSpell Web v3.2 onwards.
 
If you have any questions please email support@keyoti.com

Related Questions:

Attachments:

No attachments were found.