It's easy to make the text area editable by adding the HTML5 contenteditable attribute (see tutorial). An additional button is needed on the client side to submit (HTTP POST) the modified text to the server.
More work has to be done on the server side to synchronise the text lines with the ALTO XML, to store the modified ALTO and to make it available for end users or for internal model improvements.