text editor with basic functionality