Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

wcmmode in components, DOM loads in preview mode

Avatar

Level 2

Hi Team,

 

Drag and drop components into the page and don't author it. Go to preview mode the Dom gets loaded.

How do I avoid this ?

 

Thanks,

Soujanya.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Shetty119 

 to remove AEM generated wrapper div you can setcq:noDecoration  property. You can find more details here: https://experienceleague.adobe.com/docs/experience-manager-65/developing/components/decoration-tag.h...

 

For custom generated dom you can simply put logic based on your authored properties.

 

Hope this helps!!

Thanks

Dipti

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Shetty119 

 to remove AEM generated wrapper div you can setcq:noDecoration  property. You can find more details here: https://experienceleague.adobe.com/docs/experience-manager-65/developing/components/decoration-tag.h...

 

For custom generated dom you can simply put logic based on your authored properties.

 

Hope this helps!!

Thanks

Dipti