disable editor until file is open