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

Options

Print this page
Email this to a friend

RapidSpell Web can add spell checking to just about all editors. In v3.4 upwards you only need to;

 

1. Set the TextComponentInterface to Automatic

2. Set the RapidSpellWInline.TextComponentID or RapidSpellWebLauncher.TextComponentName to the ClientID of the textarea.

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

 

The only task required is to properly write the RSCustomInterface object needed to interface with the editor.

 

TinyMCE with RapidSpellWInline (the same code should work with RapidSpellWebLauncher too).

 

1. In RapidSpellWInline set;

 

-TextComponentInterface to "Custom"

 

-TextComponentID to the ClientID of the TinyMCE textarea.

 

-IgnoreXML to "true"

 

-RapidSpellWInlineHelperPage as usual to the URL of the page holding RapidSpellWInlineHelper (note, you should also add validateRequest="false" to the page directive on that page)

 

2. Add this Javascript block to the page using the editor

 

<script type='text/javascript'>

function RSCustomInterface(tbElementName){

this.tbName = tbElementName;this.getText = getText;this.setText =

setText; function getText(){  return 

tinyMCE.get(this.tbName).getContent();

}

function setText(text){

     tinyMCE.activeEditor.setContent(text);

  }

}

</script>

 


Related Questions:

Attachments:

No attachments were found.