Custom image upload with NicEdit

I recently had to implement NicEdit with the ability to upload images to the server.
NicEdit uploads images by default to imgur. If you want to change this to pictures beeing uploaded to your own server, you’d either have to change the onUpload event, or you imitate the imgur json response with your own values.

This json in response to the upload works as of Version 0.9 r24 without any JavaScript / event handler changes:

2 thoughts on “Custom image upload with NicEdit

Leave a Reply

Your email address will not be published. Required fields are marked *