DS Server

Javascript: TXTextControl.LoadSettings.addParagraph Property

Property|Introduced in 28.0

Description

Specifies whether or not a new paragraph is created before text is loaded.

Syntax

<boolean> TXTextControl.LoadSettings.addParagraph

Examples

The following example demonstrates TXTextControl.LoadSettings.addParagraph in a practical document-editing workflow. It specifies whether or not a new paragraph is created before text is loaded.

function inspectAddParagraph(loadSettings) {
    const addParagraph = loadSettings.addParagraph;
    console.log("add paragraph:", addParagraph);
}