Javascript: DocumentSettings.getAuthor Method
Description
Gets the author of the current document.
Syntax
<void> DocumentSettings.getAuthor(<RequestStringCallback> 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.getAuthor in a practical document-editing workflow. It gets the author of the current document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.documentSettings.getAuthor(
function(result) {
console.log("get author result:", result);
},
onTxError
);