Problem with Insert Media to post
-
After installing the plugin, the regular page/post function for inserting a media into post body through the usual Media screen is not working anymore.
I can still pull up the Media screen in the editor in the page, post or the nimble portfolio custom post type. However, after I select (or upload) an image and hit Insert Into Post, nothing happens. The image does not insert into the editor as it should.
I deactivated the plugin and this wordpress feature worked again.
Eventually, I figured out it was related to this piece of code in admin-media-lib.js in the plugin.
window.send_to_editor = function(html) {
imgurl = $(‘img’,html).attr(‘src’);
$(‘#’+imgfield).val(imgurl);
tb_remove();}
It seems to be overwriting the native wordpress send_to_editor function. Is this a known issue? I can’t imagine I’m the only person experiencing this. I’m using the free version. Is there a setting I’m not aware of?
Thank you in advance.
Cheri
The topic ‘Problem with Insert Media to post’ is closed to new replies.