                         document.execCommand 'insertHTML', false, img
                     fileReader = new FileReader()
                     fileReader.readAsDataURL file
-                    fileReader.onload = ->
+                    fileReader.onload = =>
                         img = document.getElementById id
                         if img
                             img.removeAttribute 'id'
-                            img.removeAttribute 'class'
                             img.src = fileReader.result
+                            # force update of React component
+                            @onHTMLChange()
         @setState target: false

                ref: 'html',
                contentEditable: true,
                onKeyDown: @onKeyDown,
                onInput: onHTMLChange,
                onDragOver: @allowDrop,
                onDragEnter: @onDragEnter,
                onDragLeave: @onDragLeave,

                className: "editor #{classTarget}",
                ref: 'content',
                onKeyDown: @onKeyDown,
                onChange: @onTextChange,
                onBlur: @onTextChange,
                defaultValue: @state.text.value
                onDragOver: @allowDrop,
                onDragEnter: @onDragEnter,
