Expand my Community achievements bar.

SOLVED

Add styles to RTE paragraph format tags

Avatar

Level 2

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?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @aemAmateur 

 

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!

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @aemAmateur 

 

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!