const editorUpdated = () => {
        if (!$scope.showEditor && !$scope.editorUnread) {
        // Someone did something to the editor while we weren't looking
          $scope.$apply(() => {
            $scope.editorUnread = true;