             ]
 
     render_edit: ->
+        cell_type = @props.cells?.get(@props.cur_id)?.get('cell_type')
         @render_menu
             heading : 'Edit'
             names   : \

            has_unsaved_changes : rtypes.bool
            kernel_info         : rtypes.immutable.Map
            backend_kernel_info : rtypes.immutable.Map

    shouldComponentUpdate: (next) ->
        return next.has_unsaved_changes != @props.has_unsaved_changes or \
            next.kernels != @props.kernels or \
            next.kernel != @props.kernel or \
            next.backend_kernel_info != @props.backend_kernel_info

    propTypes :
        actions : rtypes.object.isRequired

                 "cut cell", "copy cell", "paste cell above", "paste cell below", "paste cell and replace", "delete cell", "", \
                 "split cell at cursor", "merge cell with previous cell", "merge cell with next cell", "merge cells", "", \
                 "move cell up", "move cell down", "", \
                 "edit notebook metadata", "find and replace", "", \
                 "#{if cell_type != 'markdown' then '<' else ''}insert image"]   # disable if not markdown

    render_view: ->
        @render_menu
