EDITING: Ensure the Editor closes when its view is closed

This fixes the issue where padding added for the edit bar is not removed when navigating away from a page with the editor open.