Text editor.

As requested here is the pull request early.