code: function(shouldValidate) {
      // if undefined or null or anything other than false - treat as true
      shouldValidate = (shouldValidate === false) ? false : true;
  
      utils.log("Handling form submission for Editor " + this.ID);
  
      this.mediator.trigger('errors:reset');
      this.store.reset();
  
      this.validateBlocks(shouldValidate);
      this.blockManager.validateBlockTypesExist(shouldValidate);
  
      this.mediator.trigger('errors:render');
      this.el.value = this.store.toString();
  
      return this.errorHandler.errors.length;
    }
docs: /*
  Handle a form submission of this Editor instance.
  Validate all of our blocks, and serialise all data onto the JSON objects