Title: stkwp's Replies | WordPress.org

---

# stkwp

  [  ](https://wordpress.org/support/users/stkwp/)

 *   [Profile](https://wordpress.org/support/users/stkwp/)
 *   [Topics Started](https://wordpress.org/support/users/stkwp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/stkwp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/stkwp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/stkwp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/stkwp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/stkwp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-roundabout-pro] Cannot insert an image](https://wordpress.org/support/topic/cannot-insert-an-image-1/)
 *  [stkwp](https://wordpress.org/support/users/stkwp/)
 * (@stkwp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/cannot-insert-an-image-1/#post-4021655)
 * 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 : [http://goo.gl/5HBiQr](http://goo.gl/5HBiQr))
    That’s all 🙂

Viewing 1 replies (of 1 total)