I’m using Drupal 8.4. I would like to insert an image into the WYSIWYG editor or attach to a node that:
1) Allows me to select a responsive image style
2) Renders using the Picture element
3) Can be opened in Colorbox (or similar lightbox like modal)
4) Is uploaded or selected via the Entity Browser or similar image browser.
5) Shows a caption
So far I can only get a caption using methods where the image is directly added into the WYSIWYG editor for the node.
Using the default image insert function of CKeditor I can get items 1, 2, and 5.
Using Entity Embed I can get items 3, 4 and 5.
So far from what I can tell none of the colorbox like modules support D8’s responsive image styles… they just use the older image styles.
I was thinking I could live without the Picture element if I could figure out how to wrap the image field with a url pointing at the original image file that opens up in a colorbox like modal.
Is this something I could do in templates perhaps? Is there an obvious solution I’m missing?