Replies: 0
I am building a plugin. I have a custom post type page in the admin. On the edit page I have the normal editor enabled. I have made my own metabox and in that metabox I have an image / file uploader link.
For the uploader I have tried using tb_show as well as wp.media in my JS file. It opens fine.
The problem is that on close or when an image is selected and the thickbox closes, the page scrolls to the up and the metabox is no longer in view unless you scroll back down.
If I use remove_post_type_support and remove the editor from the page, it works as expected. Therefore somehow when I open a thickbox it is associated with the one already on the page for the editor (“Add Media”).
Any ideas how to fix this problem?
Thanks!
- This topic was modified 4 minutes ago by Scott Paterson.