Semi Working Text Editor

undo redo need to be refined