Contact us

Applies to: Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.0 - 7.4

Skip to main content

TextUtils

Classes​

TextUtils​

Constructors​

Constructor​
new TextUtils(): TextUtils;
Returns​

TextUtils

Methods​

correctPlainMultilineText()​
static correctPlainMultilineText(text): string;
Parameters​
ParameterType
textstring
Returns​

string

isTextEmpty()​
static isTextEmpty(text): text is "" | "<p></p>" | "<p><span></span></p>";
Parameters​
ParameterType
textstring
Returns​

text is "" | "<p></p>" | "<p><span></span></p>"

Was this page helpful?