code: function(block, shouldValidate) {
      if (!config.skipValidation && shouldValidate && !block.valid()) {
        this.mediator.trigger('errors:add', { text: _.result(block, 'validationFailMsg') });
        utils.log("Block " + block.blockID + " failed validation");
        return;
      }
  
      if (block.type === 'text' && block.isEmpty()) {
        return;
      }
  
      var blockData = block.getData();
      utils.log("Adding data for block " + block.blockID + " to block store:",
                blockData);
      this.store.addData(blockData);
    }
docs: /*
  If block should be validated and is not valid then register an error.
  Empty text blocks should be ignored.
  Save any other valid blocks to the editor data store.