How to reuse custom Text(RTE) Component in dialog | Community
Skip to main content
New Participant
December 9, 2020
Solved

How to reuse custom Text(RTE) Component in dialog

  • December 9, 2020
  • 1 reply
  • 1527 views

I have create a custom RTE component with my own set of plugins in AEM 6.3. It works when used on a page.

Now I have a requirement top use text component in dialog where I want reuse my RTE component

Referred this blog for using default text component.

I tried to use my component by writing the below code in cq_dialog xml but it doesn't work

<description
jcr:primaryType="nt:unstructured"
sling:resourceType="/apps/my-project/components/general/text/cq:dialog/content/items/text/items/column/items/text"
fieldLabel="Description"
required="{Boolean}true"
name="./description">
<rtePlugins
jcr:primaryType="nt:unstructured"
sling:resourceSuperType="/apps/my-project/components/general/text/cq:dialog/content/items/text/items/column/items/text/rtePlugins"/>
<uiSettings
jcr:primaryType="nt:unstructured"
sling:resourceSuperType="/apps/my-project/components/general/text/cq:dialog/content/items/text/items/column/items/text/uiSettings"/>

</description>

 Any suggestions ?

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 Suraj_Kamdi

@vinit_pillai 
Use 

sling:resourceSuperType="/apps/..../text/cq:dialog/content/items/text/items/column/items/text"
sling:resourceType="cq/gui/components/authoring/dialog/richtext"

 

1 reply

Suraj_Kamdi
Suraj_KamdiAccepted solution
New Participant
December 9, 2020

@vinit_pillai 
Use 

sling:resourceSuperType="/apps/..../text/cq:dialog/content/items/text/items/column/items/text"
sling:resourceType="cq/gui/components/authoring/dialog/richtext"

 

kautuk_sahni
Employee
December 9, 2020
Thank you for sharing this.
Kautuk Sahni