Text edit

a pull request from text-edit