I cannot find a way to generate srcset for images added inside Wysiwyg Editor field of Advanced Custom Field (ACF) plugin. Obviously, i know how to generate WordPress image srcset using:
function, as described at WordPress codex: https://developer.wordpress.org/reference/functions/wp_get_attachment_image_srcset/
But my real problem is to figure out most efficient way to get image srcset for images added inside ACF Wysiwyg Editor as the way my website is structured there is too much content inside my Wysiwyg Editor like text, images, videos and different heading tags.
Also, all the images added inside WordPress default Wysiwyg Editor is showing image srcset properly.
It's just that ACF Wysiwyg Editor is not supporting this. Any pointers to add efficient filter/hooks will be really helpful.