applyCharacterStyle(text, style)
Applies a character style to the given text object, text frame or story. The character style can be given as name or as character style instance.
Type: function
Parameter(s):
- text {TextFrame | TextObject | Story}:
The text frame, text object or story to apply the style to.
- style {CharacterStyle | String}:
A character style instance or the name of the character style to apply.
Returns:
-
{Text}:
The text that the style was applied to.