textWithNewLine
Adds the given text to the content. If the caret is not at the beginning of the line, a newline is added before appending the text.
Parameters
text
The text to be added to the content.
Adds the given text to the content. If the caret is not at the beginning of the line, a newline is added before appending the text.
The text to be added to the content.