Update textEditor.js

Issue #913
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.