Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM style classes not getting applied in preview and publish instances

Avatar

Avatar
Validate 1
Level 1
Sudarshan
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Sudarshan
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

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

03-09-2020

Hi,

 

I created a couple of CSS classes, where the author can apply those via style systems in a text component. Upon selection of the Style class, the corresponding CSS changes are applied in the author instance. The issue is with respect to publish and preview mode where the appended markup in HTML is getting disappeared.

 

There is no problem with the clientlibs, it contains the corresponding changes in the publish instance. Only the added markup class name is getting disappeared in publish mode.

 

My Text resourceSuperType is: core/wcm/components/text/v2/text

Any help on this would be appreciated.

 

Thanks,

Sudarshan

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,429 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,429 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

03-09-2020

This could be issue with -

1. Policies are not deployed in publish.

2. The applied style's id does not match as the style id in the policy

Answers (0)