text: function Config() {
  }
  
  Run.$inject = ['$rootScope'];
  
  function Run($rootScope) {
      $rootScope.html = '<header>this is the header</header><content><ol><li>Hello World</li><li>Foo</li><li>Bar</li></ol></content><footer>this is the footer</footer>';
      $rootScope.showEditor = true;
      $rootScope.showPdf = false;
      $rootScope.pdfUrl = 'pdf.pdf';
  
      $rootScope.context = this.context;
  
      $rootScope.toggleEditor = function (value) {
          $rootScope.showEditor = value;
      }
  
      $rootScope.togglePdf = function (value) {
          $rootScope.showPdf = value;
      }
  
      $rootScope.copyToClipboard = function (html) {
          var aux = document.createElement("input");
          aux.setAttribute("value", html);
          document.body.appendChild(aux);
          aux.select();
          document.execCommand("copy");
          document.body.removeChild(aux);
      }
  
      $rootScope.onContextChange = function(context) {
          console.log(context);
          $rootScope.context = context;
      }
  }
  
  angular.module("demo", ['ngDocument'])
      .config(Config)
      .run(Run);