Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

How to add a custom class to drag-and-drop image component

Avatar

Level 2

I used: 
 

<div data-sly-resource="${'image' @resourceType='foundation/components/image'}"></div>

It has generated "cq-dd-image" class, how to add custom classes to this component?

1 Accepted Solution

Avatar

Correct answer by
Level 8

Simply overlay the default image component in your project and add the custom class as per your requirment

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

Simply overlay the default image component in your project and add the custom class as per your requirment