Prototype for a text editor implementation.