Note contents in editor are saved when window is closed.