Got this working using window.parent.send_to_editor
function wcmediaInsert()
{
window.parent.send_to_editor('<?php echo wp_get_attachment_image($attachment->ID, 'large', false, $attr); ?>');
window.parent.tb_remove();
}
Got this working using window.parent.send_to_editor
function wcmediaInsert()
{
window.parent.send_to_editor('<?php echo wp_get_attachment_image($attachment->ID, 'large', false, $attr); ?>');
window.parent.tb_remove();
}