Implemented by
This enables optional lazy creation of the spellchecking object. On the trunk getInlineSpellChecker replaces the attribute inlineSpellChecker. Here, we support that on a special interface to avoid changing branch interfaces, and rename it to getInlineSpellCheckerOptionally to avoid conflicting with the automatically generated getter for the attribute. @status TEMPORARY
[scriptable, uuid(60fbf998-e021-4f81-bdf0-749cc651e221)]
interface nsIEditor_MOZILLA_1_8_BRANCH : nsIEditor
Methods
Returns the inline spell checker associated with this object. The spell
checker is lazily created, so this function may create the object for
you during this call.
@param autoCreate If true, this will create a spell checker object
if one does not exist yet for this editor. If false
and the object has not been created, this function
WILL RETURN NULL.
nsIInlineSpellChecker
getInlineSpellCheckerOptionally(in boolean autoCreate)
Called when the user manually overrides the spellchecking state for this
editor.
@param enable The new state of spellchecking in this editor, as
requested by the user.
void
setSpellcheckUserOverride(in boolean enable)
Resyncs spellchecking state (enabled/disabled). This should be called when anything that affects spellchecking state changes, such as the spellcheck attribute value.
void
syncRealTimeSpell()
Compare to: