update editor while saving