Cloudinary Upload/Insert Button in Wordpress Plugin
Hi. I am using the cloudinary-image-management-and-manipulation-in-the-cloud-cdn plugin on our Wordpress site. It is terrific.
Problem - we are hiding the post_content field on our posts - remove_post_type_support( "post", "editor" ) - and therefore the cloudinary-library-config span doesn't get displayed.
How easy is it to alter the code or cloudinary.js to attach this process to another editor field, one we have used ACF to create?
-
I was able to get the button working on an ACF editor field by changing the event call in cloudinary.js
from
jQuery('.cloudinary_add_media').click(function()
to
jQuery(document) .on('click', '.cloudinary_add_media', function()
Next step is to get the insert_into_post working with the correct field....
0 -
Hi
Thanks for your patience in this.
I've asked our dev team to take a look at the request, although we can't promise this would be added to our near future plans.
Note that the post_content field is something our PHP SDK relies on, so need to be gentle when changing things around that.
0 -
Confirming that MIT DEV's fix works. I have a WP site with lots of ACF Flexible Content fields and the Cloudinary Upload/Insert button would work on a normal post paragraph but not in any ACF fields.
I applied MIT DEV's fix and did a force-refresh of the page (hold SHIFT and click refresh) and the button works on ACF fields.
1 -
Hi Simon,
Thanks for confirming and sharing!
We appreciate this.
0
Post is closed for comments.
Comments
4 comments