text editor skeleton