In this lesson we focus on how to interact with text inside Lectora. Basically there are a few options to change the look and feel and the content of a textblock inside Lectora.
As you can see, Lectora splits texts in spans when using returns in the text. Thus not all the text will be colored by the standard script on button 1 and 2. To ensure all text in a textfield gets colored we need to get to ALL the spans in a Html element.
To make sure you get all spans in a textblock check out how its done in the function on button 3.
Basically this function uses the selector querySelectorAll to get all the spans in a given textbox.