wcmmode in components, DOM loads in preview mode

Avatar

Avatar
Validate 1
Level 1
Shetty119
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Shetty119
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Shetty119
Level 1

11-07-2021

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.

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

126 likes

Total Posts

144 posts

Correct reply

41 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

126 likes

Total Posts

144 posts

Correct reply

41 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile
Dipti_Chauhan
Level 6

12-07-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.h...

 

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

 

Hope this helps!!

Thanks

Dipti

Answers (0)