Knowledgebase Home Page  >  RapidSpell Web Java
Search the Knowledge Base
How can I use RapidSpell Web Java with TinyMCE?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=255&catId=45

Options

Print this page
Email this to a friend

RapidSpell Web can add spell checking to just about all editors.

 

In v4 and upwards (Javascript based usage);

 

Please see http://keyoti.com/products/rapidspell/javaWeb/Helpv4/UserGuide/Examples/JSmode/3rd_Party_textboxes.htm

 

 

In v3.1, v3.2 and v4+ (JSP usage) you only need to;

 

1. Set the textComponentInterface = “Automatic”

2. Set ignoreXML = ”true”

3. textComponentID=”<…put the id of the tingMCE here…>” in the tag

 

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

 

Version 3.1 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.