fix save large file problem
insertText function that works with undo buffer
inital editor menu + bugfix for cursor disappears;