If you click the Edit Image pencil icon on an image field AFTER you have previously set the Media Manager modal view to the Upload Files view, it locks you in to the Upload Files view. To get it back to the edit screen you have to launch another Media Manager modal from the WYSIWYG and set the view to the Media Library view.
The issue only occurs if you first open the Media Manager in the standard WYSIWYG and select Upload Files, then close that Media Manager modal. Then, when you click the Edit pencil icon on an image field you see the same Upload Files modal screen rather than the Edit Image screen.
Is it possible to get an un-minified version of the JS used to generate the modals? I’d like to take a shot at debugging this as I’ve done some work previously with customizing the Media Manager modal.
Thanks for your help on this one.
I’m stuck at the moment as to how to include a un minified version.
I use codekit to concatenate and minify the input.js file and create a input.min.js
On guihub, you will find the image.js script within the js/input folder.
Does anyone know how to create a full and a min version of a concatenated script?
Thanks! I’ll let you know if I figure anything out.
Did you say in the Stack Overflow question that setting the content.mode to browse didn’t always work? I just uncommented that line and it appears to be working correctly for me now.
It’s line 1748 in the input.js file.
The only thing I’ve noticed where it stays with the upload view now is if you use the Add Image after switching views in the default Media Manager. The reason that’s happening is there just isn’t a call to set the view to “browse” in the .popup() method.
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields support forum. Please search before posting a new topic to help keep conversation streamlined.
Looking for the old support forum?
The forum support hours are Monday through Friday, 9AM to 6PM EAST (UTC/GMT+10). Please allow adequate time for a response to your inquiry.
Helping others is a great way to earn karma, gain badges and help ACF development!