automatic edit mode when entering into editor, save the script with ctrl-s keys