custom media frame and issues with Edit Image link
-
I’m creating a custom media frame with the following code for my plugin:
zFrame = wp.media.frames.customImage = wp.media({ title: 'Choose Image', library: { type: 'image' }, id: 'z-frame' });
The “Edit Image” link that appears in the right column opens in a new window when clicked. Meanwhile, native versions of the media frame, such as for Featured Image, have the “Edit Image” link update the view in the current window. How do I prevent the link from opening a new tab? Is there an option I’m missing for wp.media?
- The topic ‘custom media frame and issues with Edit Image link’ is closed to new replies.