Javascript: MisspelledWord.getIsDuplicate Method
Description
Gets a value which marks the misspelled word as duplicate.
Syntax
<void> MisspelledWord.getIsDuplicate(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives a value which marks the misspelled word as duplicate. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates MisspelledWord.getIsDuplicate in a practical document-editing workflow. It gets a value which marks the misspelled word as duplicate.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectIsDuplicate(misspelledWord) {
misspelledWord.getIsDuplicate(
function(result) {
if (result) {
console.log("get is duplicate is available.");
} else {
console.warn("get is duplicate is not available in the current document state.");
}
},
onTxError
);
}