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 community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🙋♂️ We are looking for a talented designer to help reimagine the ACF website and identity. Is this you?— Advanced Custom Fields (@wp_acf) September 27, 2019
❤️ Love for GUI apps & tools.
🦄 Skills in modern web & identity design.
🥳 Fun to work with.
You know what to do.
© 2019 Advanced Custom Fields. Subscribe