Added an image-inserted event to the editor.
Merge branch 'image-event' into gh-pages