Expand my Community achievements bar.

SOLVED

common code of Text component to be used in all other component with RTE field

Avatar

Level 2
We have a Text (RTE) component with some new text fields added to one of it's link icon.....we want to add the same text field related to that all other components where we have used field as RTE in a component...How can we reuse the Text component capabilities here?
 
How can we externalize this RTE plug-in  then point to every component whereever it is being used? any example?.
1 Accepted Solution

Avatar

Correct answer by
Level 10

Hello @airnavin30,

You can re-use parts of your edit dialogs by using a Granite include node: https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui...

 For example, by using adding the following node to a cq:dialog, you can re-use the configuration form the Core Components Text cq:dialog:

<include
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/coral/foundation/include"
    path="core/wcm/components/text/v2/text/cq:dialog/content/items/tabs/items/properties/items/columns/items/column/items/text"/>

 This is the result

Peek 2020-09-14 16-37.gif

:

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hello @airnavin30,

You can re-use parts of your edit dialogs by using a Granite include node: https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui...

 For example, by using adding the following node to a cq:dialog, you can re-use the configuration form the Core Components Text cq:dialog:

<include
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/coral/foundation/include"
    path="core/wcm/components/text/v2/text/cq:dialog/content/items/tabs/items/properties/items/columns/items/column/items/text"/>

 This is the result

Peek 2020-09-14 16-37.gif

: