ClearFormatting Function
Restores the default text formatting of the characters given as a continuous range in a given text item from an Envision document currently opened in the Canvas Envision Creator app.
Parameters
tableObj: EvItemAn Object item object, a text item from the Envision document currently opened in the Canvas Envision Creator app with the given range of characters that should be cleared of the custom text formatting.
If a given object item is not a text, the function throws an error.
span?: EvCharSpanAn
EvCharSpanobject, a given continuous range of characters in the given text item whose text formatting should be restored to the defaults.The default value is the entire text in the given text item.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the default text formatting has been successfully restored in the characters within the given range in the given text item in the current document.