Is there a way to have this work with images added to the body field? Not all users will be adding images through an image field, so this would only work with some images.

Comments

kevinquillen’s picture

Status: Active » Closed (works as designed)

Without a good way to hone in on the images other than regex (which can be expensive performance wise) - I would advise that the next best route could be using image tokens instead of uploading and referencing the image path directly.

Perhaps using an image field and WYSIWYG token support, you can achieve this - I have done it with Clearing. The token will render the field as specified in the Token view mode of the referenced file entity.