framework of texteditor