Disabling or enabling the inline spelling checker can be controlled through the configuration file, by the user or programmatically. Each of these approaches can be useful in different situations.
If you want to disable inline spell checking when the editor first loads, simply include
startBackgroundChecking="false" on the
spellCheck element in your configuration file:
<spellCheck startBackgroundChecking="false" />
If you include the BackgroundSpellChecking menu item in your configuration, users will be able to enable the inline spell checker if they want it, otherwise inline spell checking will be unavailable.
Users can turn inline spell checking on and off using the
BackgroundSpellChecking menu item. This is provided in the configuration file by including the element as a child of one of you <menu> elements:
<menuItem name="BackgroundSpellChecking" />
If this menu item is not present, users will be unable to enable or disable inline spell checking.
Using the EditLive! Advanced APIs, you can enable or disable spell checking as you type at any point while the editor is running. Simply fire a
BACKGROUND_SPELL_CHECKING event with either true or false as the extra string. So to enable:
editliveBean.raiseEvent( new TextEvent(this, TextEvent.BACKGROUND_SPELL_CHECKING, "true", -1));
and to disable:
editliveBean.raiseEvent( new TextEvent(this, TextEvent.BACKGROUND_SPELL_CHECKING, "false", -1));