Implement Revert for edit window.