Added more functionality to the custom text editor.