easy-markdown-editor icon indicating copy to clipboard operation
easy-markdown-editor copied to clipboard

Added `onAfterImageUploaded`

Open artknight opened this issue 4 years ago • 0 comments

Hi, I have an external module that handles the image uploads. The only way I could make it work with the easyMDE editor was to extend the prototype like this

EasyMDE.prototype.onAfterImageUploaded = function(imageUrl){
  afterImageUploaded(this,imageUrl);
}

Then later in my code I would invoke it like this

let __easyMDE = new EasyMDE({...});
__easyMDE.onAfterImageUploaded(imageUrl);

I am wondering if this snippet could be added to the actual code base as I am sure many devs would love to have it.

Thanks, Art

artknight avatar May 26 '21 17:05 artknight