Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,

    I’m not now if u have found a solution but this one fix the problem for me. Perhaps it could be useful for others.

    Locate the admin.js file into plugins/wp-roundabout-pro/js folder.
    At the end of the file you could see that function

    window.send_to_editor = function(html) {
    imgurl = jQuery('img',html).attr('src');
    jQuery('#upload_image').val(imgurl);
    tb_remove();

    Replace (or put /* */ to keep) it to this code :

    var original_send_to_editor = window.send_to_editor;
    
    window.send_to_editor = function(html) {
         var imgurl = jQuery('img',html).attr('src');
         current_item.siblings('.upload_image').val(imgurl);
         //current_item.siblings('#logo').remove();
         current_item.siblings('.image-preview').html('<img src="'+imgurl+'" >');
         tb_remove();
         window.send_to_editor = original_send_to_editor;
    }

    (found here : https://goo.gl/5HBiQr)
    That’s all ??

Viewing 1 replies (of 1 total)