Readds the reset of the editor content in EOS

Also fixes so that the carrot position is remembered when editing is started.