Expand my Community achievements bar.

SOLVED

Extending RTE's Paragraph format plugin

Avatar

Level 2

I am trying to extend and customize the functionality of the paragraph format plugin, and i am expecting the change to reflect throughout the whole site. But I am unable to find the location of the base file to extend. please point out the path to the base file. if you know any other alternative to do the above change, I'd like to hear that too. Thanks.

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 

The idea approach will be to create a rtePlugin node within your website and add the properties (i.e. OOTB + any customized ) into the location. Now in your website you can refer this path for the RTE plugins so any change to the global location will be reflected across the website and the OOTB functionality will remain intact.

 

Please refer the below link and you can create the customized rtePlugin node.

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

 

Thanks!

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @aemAmateur 

The idea approach will be to create a rtePlugin node within your website and add the properties (i.e. OOTB + any customized ) into the location. Now in your website you can refer this path for the RTE plugins so any change to the global location will be reflected across the website and the OOTB functionality will remain intact.

 

Please refer the below link and you can create the customized rtePlugin node.

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

 

Thanks!

Avatar

Level 2

Hi asutosh,
I might have not explained properly in my question, but i am expecting to change the functionality as a whole.  Some of the expected functionality are not the part of the RTE plugin I am working with. I want para format plugin to use <p style="font-size:40px"> instead of h1 tag. is it possible

Avatar

Community Advisor

Hi @aemAmateur 

Inline styles are not supported using the plugin. There is a way that you can define additional style attributes with some predefined helper classes such as f40, f50 which will apply only font size and the same can be added to the DOM using the style attribute within the plugin. But it will apple the css class by wrapping it into a <span> tag. It will be something like:

 

<p>

<span class="f40">

Some Content

</span>

</p>

 

now the css will be loaded from clientlib and will be applied on the qualified DOM elements.

 

Please refer the link here:

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

 

Thanks!