Handle clicking off the editor or toolbar - saves