Cancels the changes made in an editing session.
An editing session is started by calling start_editing. text will be reverted to the value saved when start_editing was called.