Changing editor save-button according to the operation