Richtext text inside multifield not working in content fragment | Community
Skip to main content
Level 2
March 22, 2021
Solved

Richtext text inside multifield not working in content fragment

  • March 22, 2021
  • 3 replies
  • 2722 views

Hi All,


I have a requirement where we need to add richtext text inside multifield within content fragment. I have checked multiple blogs but no where the solution is mentioned. First of all, is it possible to have richtext under multifield within the content fragment.

 

Thanks in advance.

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 Pawan-Gupta

Hello,

 

It is possible to add multifield with richtext inside content fragment (with some custom node configuration from crxde) as it uses the same dialog resource type cq/gui/components/authoring/dialog

 

i just did it and it works with multifield after configuring the content fragment model using (contentreference widget --> and configure it for multifield) default will come with text field. Now go to your model its created for example conf/project/setting/dam.... and then change the configuration of "field" node under multifield node as attached image

 

note: make sure the mulfield node and field node has same "name" configured as it comes already configured when you create model initially.

 

hope it helps!!

 

3 replies

Bhuwan_B
Community Advisor
Community Advisor
March 22, 2021

RTE capabilities are supported only in AEM component dialogs. RTE is not supported on wizards or Foundation-forms like Page Properties and Scaffolding on Touch-enabled UI.

 

Content Fragment Model is of "wcm/scaffolding/components/scaffolding" resource type.

 

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/rich-text-editor.html?lang=en#known-limitations

Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
March 22, 2021

Hello,

 

It is possible to add multifield with richtext inside content fragment (with some custom node configuration from crxde) as it uses the same dialog resource type cq/gui/components/authoring/dialog

 

i just did it and it works with multifield after configuring the content fragment model using (contentreference widget --> and configure it for multifield) default will come with text field. Now go to your model its created for example conf/project/setting/dam.... and then change the configuration of "field" node under multifield node as attached image

 

note: make sure the mulfield node and field node has same "name" configured as it comes already configured when you create model initially.

 

hope it helps!!

 

Level 3
July 6, 2023

I tried the configuration which you mentioned in the screenshot and it dint work. Can you please confirm if you add any other configurations to make this work?

maddy_23
Level 2
April 20, 2023

Hi @pawan-gupta I tried the RTE inside content fragment multifield. When I try to save CF, the RTE values not getting save. and also additional item get added when I reopen the CF again with blank data. Can you please provide any working example link.