Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How to add plugins for RTE in content fragment in AEM 6.5

Avatar

Level 4

Hi Experts,

How to Configure(add new one) RTE plugins in Content Fragment.

or Is it possible to add existing RTE component as a Data Type?

@Ritesh_Mittal 

 

Thanks and Regards

 

8 Replies

Avatar

Community Advisor

What is the error you're getting? can you please explain a bit where you're stuck.

I just followed the first one and i could see the plugin.

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

 

SivaPrasadReddyS_0-1646664654207.png

When I click full screen, i can see custom plugins added.

SivaPrasadReddyS_1-1646664825085.png

 

FYI, you will be able to click on Full screen only when you added some text. 

 

Regards

Siva

Avatar

Level 4

Hi @Siva_Sogalapalli 

I am trying to enable source edit by overriding 

/libs/dam/cfm/admin/clientlibs/v2/authoring/contenteditor/editors/StyledTextEditor.js

to

/apps/dam/cfm/admin/clientlibs/v2/authoring/contenteditor/editors/StyledTextEditor.js

But Source edit button is not visible

saurabh_kumar_02_0-1646667629791.png

Not getting icon

 

saurabh_kumar_02_1-1646667772418.png

 

Avatar

Community Advisor

I didn't try this way (/apps/dam/cfm/admin/clientlibs/v2/authoring/contenteditor/editors/StyledTextEditor.js), let me try this as well.

In the mean, the below is working for me, may be it's worth trying  

https://drive.google.com/open?id=1ZWRI2yUtD30im2oyvY2t4V_6zRIae_cO 

 

Regards

Siva

Avatar

Level 4

Hi @Siva_Sogalapalli 

Thanks for your effort but i need to enable all the plugins which is present by default.

Please let me know after trying 2nd one

Thanks 

 

 

Hi @lone_Ranger @Siva_Sogalapalli  can you please tell me how did you make the 2nd approach work?

i tried to override 

/libs/dam/cfm/admin/clientlibs/v2/authoring/contenteditor/editors/StyledTextEditor.js

to

/apps/dam/cfm/admin/clientlibs/v2/authoring/contenteditor/editors/StyledTextEditor.js

but the code from /apps is not getting called at all. 

please suggest if i might have missed something here