[TextEditor] Added proper new line support.