linkesch / medium-editor-insert-plugin

jQuery insert plugin for MediumEditor
http://orthes.github.io/medium-editor-insert-plugin
MIT License
1.22k stars 352 forks source link

uploadCompleted does not work #467

Closed TrubinEN closed 6 years ago

TrubinEN commented 6 years ago

The following code does not work `var editor = new MediumEditor(".editor");

$(function() { $(".editor").mediumInsert({ editor: editor, addons: { images: { uploadCompleted: function($el, data) { console.log("test"); } } } }); });`

Nothing displays after loading an image

rbsl-yasmin commented 6 years ago

It will trigger only if you're uploading your images on the server and return a response in the format they've given in the following link - https://github.com/orthes/medium-editor-insert-plugin/wiki/v2.x-Server-response