Automattic / media-explorer

With Media Explorer, you can now search for tweets and videos on Twitter and YouTube directly from the Add Media screen in WordPress.
126 stars 30 forks source link

How to include MEXP into Featured Image and ACF Image Fields #71

Open aolin480 opened 8 years ago

aolin480 commented 8 years ago

This is an awesome project! We made our own tab and have assets feeding in for the WYSIWYG Add Media button, the only issue I was wondering about was how to extend the same functionality to the Set Featured Image button, and ACF Image Field button. I currently have our assets showing up when you click on Set Featured Image by making some modifications in our service's js.js by extending backbone and using media.view.MediaFrame.Select = select_frame.extend({ to enable it on the Set Featured Image button, but when I try selecting the asset, I cannot seem to get it into the featured image (basically, I just need the steps to add an attachment ID to the featured image area when an asset is selected; I know I must download the asset and import it into the media library, then attach that attachment ID to the set featured image area). If anyone has any insight on this, it would be great! I am currently trying to understand backbone.js to make this happen.