create a text-editor implemented using textarea