   Entity,
   RichUtils,
   Modifier,
+  KeyBindingUtil,
+  getDefaultKeyBinding,
   DefaultDraftBlockRenderMap,
   getVisibleSelectionRect } = require 'draft-js'
 { convertFromHTML, convertToHTML } = require 'draft-convert'

    return true

  handleKeyCommand: (e) ->
    unless @getSelectedBlock().content.get('type') is 'header-three'
      if e in ['italic', 'bold']
        newState = RichUtils.handleKeyCommand @state.editorState, e
        if newState
          @onChange newState
          return true
      return false

  toggleBlockType: (blockType) ->
    @onChange RichUtils.toggleBlockType(@state.editorState, blockType)

          readOnly: isReadOnly
          decorators: decorators
          handleKeyCommand: @handleKeyCommand
          keyBindingFn: @keyBindingFn
          handlePastedText: @onPaste
          blockRenderMap: blockRenderMap
        }
