Editor now gets focus back when clicking the close button