title: Trying to use getCurrentContent in draftjs file
body: <p>I want to get the content of my editor and eventually store to it to a const content. I'm getting an error of _draftJs.EditorState.getCurrentContent is not a function. </p>
  
  <pre><code>import React from 'react'
  import ReactDOM from 'react-dom'
  import {Editor, EditorState, RichUtils} from 'draft-js'
  
  const content = EditorState.getCurrentContent()
  console.log('str= ', EditorState.getCurrentContent())
  console.log('content=', content)
  class MyEditor extends React.Component {
    constructor (props) {
      super(props)
      this.state = {editorState: EditorState.createEmpty()}
      this.onChange = (editorState) =&gt; this.setState({editorState})
      this.handleKeyCommand = this.handleKeyCommand.bind(this)
    }
    _onBoldClick () {
      this.onChange(RichUtils.toggleInlineStyle(this.state.editorState,     'BOLD'))
    }
    _onUnderlineClick () {
      this.onChange(RichUtils.toggleInlineStyle(this.state.editorState, 'UNDERLINE'))
    }
    render () { 
      return (
        &lt;div id='content'&gt;
        &lt;h1&gt;Notejs&lt;/h1&gt;
        &lt;div id='editor'&gt;
        &lt;button onClick={this._onBoldClick.bind(this)}&gt;Bold&lt;/button&gt;
        &lt;button onClick={this._onUnderlineClick.bind(this)}&gt;Underline&lt;/button&gt;
        &lt;Editor editorState={this.state.editorState} onChange={this.onChange} /&gt;
        &lt;/div&gt;
        &lt;/div&gt;
      )
    }
  }
  
  ReactDOM.render(
    &lt;MyEditor /&gt;,
    document.getElementById('app')
  )
  </code></pre>