         #   and resize the frame
         if @refs.content
             frame = @refs.content.getDOMNode()
+            doc = frame.contentDocument or frame.contentWindow?.document
             loadContent = (e) =>
-                step = 0
                 doc = frame.contentDocument or frame.contentWindow?.document
                 if doc?
                     doc.documentElement.innerHTML = @props.html
                     updateHeight = (e) ->
-                        e?.preventDefault()
-                        e?.stopPropagation()
                         height = doc.body.getBoundingClientRect().height
                         frame.style.height = "#{height + 60}px"
                         step++

                        rich: prepared.rich
                        imagesWarning: imagesWarning
                        composing: @state.composing
                    div className: 'clearfix'
        else
            li

                #    button
                #       className: 'btn btn-default',
                #       type: "button",
                #       onClick: @props.displayHTML,
                #       t 'message html display'
                div className: 'preview',
                    p dangerouslySetInnerHTML: { __html: @props.rich }
