{"action":"closed","issue":{"url":"https://api.github.com/repos/summernote/summernote/issues/1050","labels_url":"https://api.github.com/repos/summernote/summernote/issues/1050/labels{/name}","comments_url":"https://api.github.com/repos/summernote/summernote/issues/1050/comments","events_url":"https://api.github.com/repos/summernote/summernote/issues/1050/events","html_url":"https://github.com/summernote/summernote/issues/1050","id":72937002,"number":1050,"title":"Problem with onMediaDelete event","user":{"login":"Crinsane","id":1297781,"avatar_url":"https://avatars.githubusercontent.com/u/1297781?v=3","gravatar_id":"","url":"https://api.github.com/users/Crinsane","html_url":"https://github.com/Crinsane","followers_url":"https://api.github.com/users/Crinsane/followers","following_url":"https://api.github.com/users/Crinsane/following{/other_user}","gists_url":"https://api.github.com/users/Crinsane/gists{/gist_id}","starred_url":"https://api.github.com/users/Crinsane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crinsane/subscriptions","organizations_url":"https://api.github.com/users/Crinsane/orgs","repos_url":"https://api.github.com/users/Crinsane/repos","events_url":"https://api.github.com/users/Crinsane/events{/privacy}","received_events_url":"https://api.github.com/users/Crinsane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-04T06:47:26Z","updated_at":"2015-05-10T03:16:33Z","closed_at":"2015-05-10T03:16:33Z","body":"I just recently found out about this wonderful packages and I'm not seeing if I can incorporate it into a few project of mine. But can't resolve the following issue:\r\n\r\nI want the images selected to go to a server, so I wrote some logic for the `onImageUpload` event, and everything works like it should.\r\nBut I also want to take action when the image is deleted again, so came to the `onMediaDelete` event. But I can't seem to get this working. In some cases the event seems to not be called entirely, and if it does no parameters are passed...\r\n\r\nI'm I running into a bug, or am I doing something wrong?\r\n\r\nIf I do something simple like this:\r\n\r\n```javascript\r\n$('#summernote').summernote({\r\n\tonMediaDelete : function(a, b, c) {\r\n        console.log(a, b, c);\r\n    }\r\n});\r\n```\r\n\r\nAll I get in my console is `undefined, undefined, undefined`"}}