code: function exporter (editorState, options = {}) {
    // Retrieve the content state and its blocks
    const contentState = editorState.getCurrentContent()
    const blocks = contentState.getBlocksAsArray()
    // Convert to an abstract syntax tree
    return processBlocks(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