image uploader for widget

I think you facing issue of save button not clickable here. If I’m right about that a tiny line of javascript will solve the problem. Modify following portion of your javascript with mine:

CODE UPDATED**


imageUploader.on( "select" , function(){
    var image = imageUploader.state().get( "selection" ).first().toJSON();
    var link = image.url;
    $( "input.image_link" ).val( link ).trigger("change");
    $( ".image_show img" ).attr( 'src' , link );
} );