Extending TextEditor capabilities. Fixes #444.