Javascript: DocumentSettings.getDocumentKeywords Method
Description
Gets the current document's keywords. The property value is null, if there are no keywords contained in the document.
Syntax
<void> DocumentSettings.getDocumentKeywords(<RequestStringsCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates DocumentSettings.getDocumentKeywords in a practical document-editing workflow. It gets the current document's keywords. The property value is null, if there are no keywords contained in the document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.documentSettings.getDocumentKeywords(
function(result) {
console.log("get document keywords result:", result);
},
onTxError
);