Javascript: TXTextControl.IfField.preserveFormatting Property
Description
Specifies whether the field's formatting should be preserved.
Syntax
<boolean> TXTextControl.IfField.preserveFormattingExamples
The following example demonstrates TXTextControl.IfField.preserveFormatting in a practical document-editing workflow. It specifies whether the field's formatting should be preserved.
function inspectPreserveFormatting(ifField) {
const preserveFormatting = ifField.preserveFormatting;
console.log("preserve formatting:", preserveFormatting);
}