function to change height of textEditor

determine what height of textEditor should be based on how many
previous elements are in textEditor array