RequestTextPartCallback Function
Description
Callback function for requests expecting a FormattedText object.
Syntax
function(<FormattedText> textPart)Examples
The following example demonstrates RequestTextPartCallback in a practical document-editing workflow. Callback function for requests expecting a FormattedText object.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestTextPartCallback(textPart) {
console.log("text part:", textPart);
}
TXTextControl.textParts.getItem(requestTextPartCallback, onTxError);