Question: We have bunch of spring batch jobs and we need to invoke them in specific order. Is there any best practice we should follow? I was thinking of using autosys or cron scheduler based on status of each job and decide whether to invoke next one or not but open to other suggestions.

Answer: 
In the new version of summernote onImageUpload callback is called only with **files** argument. It means that **editor** is not available.

You can insert an image with:

```
$('.summernote').summernote("insertImage", url, filename);

```

In your case:

```
$('.summernote').summernote("insertImage", data, 'filename');

```
You must use "callbacks: {}" method. like this:

```
$('.summernote').summernote({
    height: 500,
    tabsize: 4,
    callbacks: {
        onImageUpload: function(files, editor, $editable) {
            console.log('onImageUpload');
            sendFile(files[0],editor,$editable);
        }
    }});

```