Javascript: TextPart.addTextField Method
Description
Obsolete. This method will be removed in one of the next versions. Inserts a new ApplicationField or TextField into the TextPart at the current input position.
Syntax
<void> TextPart.addTextField(<TextField> textField)Parameters
| Parameter | Description |
|---|---|
| textField | To insert textfield. |
Examples
The following example demonstrates TextPart.addTextField in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. Inserts a new ApplicationField or TextField into the TextPart at the current input position.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function addTextField(textField) {
TXTextControl.textParts.getMainText(function(textPart) {
textPart.addTextField(textField);
}, onTxError);
}