How can I set that when entering text the sentence breaks when the end of a line is reached and continues in the next line?

Are you using the multi-line input element?