Home

# Class goog.ui.RichTextSpellChecker

Rich text spell checker implementation.

extends goog.ui.AbstractSpellChecker

Instance Method Summary
| `check()` Checks spelling for all text and displays correction UI.
| `continueAsync_()` Continues asynchrnonous spell checking.
| `createDom()` Creates the initial DOM representation for the component.
| `createWordElement_(string word, ?goog.spell.SpellCheck.WordStatus status) ⇒ ?HTMLSpanElement` Creates an element for a specified word and stores a reference to it.
| `decorateInternal(?Element element)` Decorates the element for the UI component.
| `disposeInternal()` Disposes of the component. Calls {@code exitDocument}, which is expected to remove event handlers and clean up the component. Propagates the call to the component's children, if any. Removes the component's DOM from the document unless it was decorated.
| `enterDocument()` Called when the component's element is known to be in the document.
| `finishCheck_()` Finalizes spelling check.
| `getElementProperties(?goog.spell.SpellCheck.WordStatus status) ⇒ ?Object` Returns desired element properties for the specified status.
| `isExcluded_(?Node node) ⇒ boolean` Determines if the node is excluded from checking.
| `isTextLeaf_(?Node node) ⇒ boolean` Determines if the node is text node without any children.
| `nextNode_(?Node node) ⇒ ?Node` Finds next node in our enumeration of the tree.
| `onDictionaryCharged_(?goog.events.Event e)` Starts actual processing after the dictionary is charged.
| `onWordClick_(?goog.events.BrowserEvent event)` Handler for click events.
| `preChargeDictionary_(?Node node, number words)` Processes nodes recursively.
| `processNode_(?Node node) ⇒ (goog.ui.AbstractSpellChecker.AsyncResult|null|undefined)` Processes nodes recursively.
| `processRange(?Node node, string text)` Processes recognized text and separators.
| `processWord(?Node node, string word, ?goog.spell.SpellCheck.WordStatus status)` Processes word.
| `restoreNode_(?Node node)` Processes nodes recursively, removes all spell checker markup, and consolidates text nodes.
| `resume()` Hides correction UI.
| `setExcludeMarker((RegExp|null|string) marker)` Sets the marker for the excluded text. {@see goog.ui.AbstractSpellChecker.prototype.excludeMarker_}
| `updateElement(?Element el, string word, ?goog.spell.SpellCheck.WordStatus status)` Updates or replaces element based on word status.