           onChange: @onURLChange
           className: 'bordered-input'
           placeholder: 'Paste or type a link'
+          onKeyPress: @handleLinkReturn
         }
         if @state.urlValue?.length
           button {

          spellCheck: true
          onChange: @onChange
          handlePastedText: @onPaste
        }
      div { className: 'draft-caption__actions'},
        button {


  onPaste: (text, html) ->
    { editorState } = @state
    unless html
      html = '<div>' + text + '</div>'
    html = convertFromHTML(html)
    convertedHtml = html.contentBlocks.map (contentBlock) =>
      unstyled = @stripPastedStyles contentBlock
      if unstyled.getType() isnt 'unstyled' or 'LINK'
        unstyled = unstyled.set('type', 'unstyled')
      return unstyled
    blockMap = ContentState.createFromBlockArray(convertedHtml, html.entityMap).blockMap
    Modifier.removeInlineStyle(editorState.getCurrentContent(), editorState.getSelection(), 'font-weight')
    newState = Modifier.replaceWithFragment(editorState.getCurrentContent(), editorState.getSelection(), blockMap)
    this.onChange(EditorState.push(editorState, newState, 'insert-fragment'))
    return true

  stripPastedStyles: (contentBlock) ->
    characterList = contentBlock.getCharacterList().map (character) ->
      if character.get('style') isnt 'ITALIC'
        character.set('style', character.get('style').clear())
    unstyled = contentBlock.set('characterList', characterList)
    return unstyled

  promptForLink: (e) ->
    { editorState } = @state
    e.preventDefault()
    selection = editorState.getSelection()
    selectionTarget = null
    if !selection.isCollapsed()
      selectionTarget = @stickyLinkBox getVisibleSelectionRect(window)
      contentState = editorState.getCurrentContent()
      startKey = selection.getStartKey()
      startOffset = selection.getStartOffset()
      blockWithLinkAtBeginning = contentState.getBlockForKey(startKey)
