Style in Content Fragments - stopped working | Community
Skip to main content
Level 6
December 1, 2023
Solved

Style in Content Fragments - stopped working

  • December 1, 2023
  • 2 replies
  • 783 views

<p style="line-height:1"><font size="1">Disclaimers</font>
<font size="1">This is not insurance.</font></p>

 

 

Hi all, Some of our folks tell me that they were able to put styling into Content Fragments up to recently.

Then it stopped working, possibly as a result of a SP update ( We are at 6.5.18)

Does anyone know the background of this ?

So far I was planning on telling them to use Markdown instead of Rich Text as  then they have headers to give them different sized text.

(The other option is to have a component with style which can contain a Content Fragment - but they already have used the CFs in hundreds of locations so they don't want to do this.)

Anyone got any other suggestions?

thanks

Fiona

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by fionas76543059

For Content Fragment RTE, I added aem-touchui-font-size-plugin in 6.5.18 and it worked fine.

I just had to add lodash.js to the clientlibs directory and include it in the txt.js file.

This gives you different sized text and text colour/background colour for your content fragments.

 

2 replies

Level 6
December 1, 2023

https://lhotsetechnologies.com/blog/enable-rte-plugins-for-content-fragment/

 

I notice that Arun has suggested this for another poster. Maybe this is the way to go for me.

Level 6
December 1, 2023

https://experience-aem.blogspot.com/2018/12/aem-6420-content-fragment-editor-add-font-size-color-background-rte-plugin.html

 

This concerns a plugin call eaemTextFont but it looks like that stopped working in later versions of 6.5

fionas76543059AuthorAccepted solution
Level 6
December 6, 2023

For Content Fragment RTE, I added aem-touchui-font-size-plugin in 6.5.18 and it worked fine.

I just had to add lodash.js to the clientlibs directory and include it in the txt.js file.

This gives you different sized text and text colour/background colour for your content fragments.