TE Edit Control Java / HTML-JavaScript Help
Product page

Spell Checking

SpellTime must be installed to use these functions. The SpellTIme.DLL and the dictionary files should be placed where the tej.dll file is located.

Note for HTML/Javascript version: Copy SpellTimeh5.js file to the server folder containing terh32.js. Copy the dictionary files to the same folder.

After a Tej control is created, please call the TerSetStLicenseKey function to set the product key for SpellTime.

You can use the ID_SPELL (not available for TE for HTML/Javascript) and ID_AUTO_SPELL commands to use on-demand or as-you-type spell-checking.

You can also use the TerSpellCheck function to invoke on-demand spell-checking.

If you need the spell-time dictionaries to be accessed from a different directory, then create an instance of SpellTime class providing the dictionary path to the constructor. For this, you will need to include a reference to SpellTime.dll in your project. Once you get the SpellTime object, you can pass the SpellTime object to the current instance of Tej using the TerInitSpellTime function. This technique can also be used to share one instance of SpellTime with more than one instances of Tej. By default, each instance of Tej creates its own SpellTime object.