Add reverting to the editor