Hi ,
I have a requirement in the image component where a user is given preference to choose to open links in new window (similar to text component) . So all i need is to add target = "_blank" to CQ5 image anchor tag on user opts for new window . The OOTB image component uses Image class which actually outputs markup using 'image.draw ' .
From adobe documentation for Image class i was not able to see any helper methods to add extra tag attributes to added to the hyperlink around the image.
Any pointers on how i can achieve it ? Once way may be to update markup using jquery but I'm sure there will be much better way to do it