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

Add styles to RTE paragraph format tags

Avatar

Avatar
Validate 1
Level 1
Prem_IB
Level 1

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Prem_IB
Level 1

Likes

0 likes

Total Posts

10 posts

Correct Reply

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

14-04-2021

I am trying to add style to a tag generated from paragraph format plugin, like <p style="font-size:18px">some text</p>. Is it possible to do so? if not, is there any other way I can achieve the same, without forcing users to user both RTE paraformat and  then style plugin?

AEM 6.5 RTE Plugin.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

367 likes

Total Posts

462 posts

Correct Reply

134 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

367 likes

Total Posts

462 posts

Correct Reply

134 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile
asutosh_jena
Level 10

14-04-2021

Hi @Prem_IB 

 

You cannot add style tag directly to paragraph like <p style="font-size:18px">SomeText</p> in RTE.

But you can wrap the content within <p> with a class which will be applied to a <span> tag and the required style can be applied to the class such as:

 

RTE:

<p><span class="something">SomeText<span></p>

 

CSS:

.something{

     font-size: 18px;

}

 

asutosh_j3_0-1618469436260.png

 

asutosh_j3_1-1618469510570.png

 

Please refer the Text Style section in the below Adobe link:

https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/configure-ric...

 

Thanks!

Answers (0)