edit: editorState.history is now not a pointer
edit: Put all transitional states in editorState
edit: Get rid of leReturn.newMode and changeMode
edit: Fix history