Expand my Community achievements bar.

SOLVED

Style in Content Fragments - stopped working

Avatar

Level 7

<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

1 Accepted Solution

Avatar

Correct answer by
Level 7

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.

 

View solution in original post

3 Replies

Avatar

Level 7

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.

Avatar

Level 7

https://experience-aem.blogspot.com/2018/12/aem-6420-content-fragment-editor-add-font-size-color-bac...

 

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

Avatar

Correct answer by
Level 7

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.