Hello i was trying to make a bookmarklet to pre populate an embeded media Youtube field but am struggling to achieve it. The code i am using is-
<a href="javascript:u=document.location.href;t=document.title;s=window.getSelection();void(window.open('/node/add/video?edit[title]='+escape(t)+'&edit[body_field][body]='+escape(s)+'&edit[field_videourl][0][url]='+escape(u),'_blank','width=600,height=500,status=yes,resizable=yes,scrollbars=yes'));">Vid2OB</a>
It doesnt seem to want to add the youtube video url. Does anyone know how to achieve this?
Thanks
Comments
Comment #1
fadgadget commented5 years on im still trying to make this happen. if you dont mind ill update the version and hope that i might be able to do this before i die lol.
its for this module https://www.drupal.org/project/youtube
Comment #2
fadgadget commentedComment #3
fadgadget commented