wcmmode in components, DOM loads in preview mode | Community
Skip to main content
Level 2
July 12, 2021
Solved

wcmmode in components, DOM loads in preview mode

  • July 12, 2021
  • 1 reply
  • 659 views

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.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dipti_Chauhan

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.html?lang=en

 

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

 

Hope this helps!!

Thanks

Dipti

1 reply

Dipti_Chauhan
Community Advisor
Dipti_ChauhanCommunity AdvisorAccepted solution
Community Advisor
July 12, 2021

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.html?lang=en

 

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

 

Hope this helps!!

Thanks

Dipti