code: function exporter(editorState) {
    var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
  
    // Retrieve the content state and its blocks
    var contentState = editorState.getCurrentContent();
    var blocks = contentState.getBlocksAsArray();
    // Convert to an abstract syntax tree
    return (0, _processor2.default)(blocks, contentState, options);
  }
docs: Exporter
  
  @param  {EditorState} editorState Draft JS EditorState object
  @param  {Object} options Additional configuration options
  @return {Array} An abstract syntax tree representing the draft-js editorState