Extending TextEditor capabilities. Fixes #350.