Obsidian event

Hey there, this is my first post!

I’m a software developer and I’ve been looking into developing an obsidian plugin. The thing that I’d like to accomplish is to replace the default Md styled “![[image_name]]” format when an image is inserted into something else. I was able to perform everything necessary to modify the document but what I cannot figure out is the event that is triggered when the ‘drag and drop’ image functionality happens.