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

Avatar

Avatar

airnavin30

Avatar

airnavin30

airnavin30

14-09-2020

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?.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Theo_Pendle

MVP

Avatar

Theo_Pendle

MVP

Theo_Pendle
MVP

14-09-2020

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

:

 

Answers (0)