Update textEditor.js

TextArea editor behaviour change. Allows inserting newlines in the middle of the text. Previously it was only possible to append newlines to the text inside the TextArea.