Expand my Community achievements bar.

SOLVED

Using RTE in AEM 6.3

Avatar

Level 2

Hi,

We are trying to use RTE in one of the component that we are creating for our product using AEM 6.3. In classic UI, it is pretty much fine. We define:

xType : richtext and define the rtePlugins under this node in the dialog.

This dialog works fine in we use it in touch UI as it is. But if we change the dialog to cq:dialog and follow the standard of creating the dialog according to touch UI, the dialog does not show the plugins i added under rtePlugins. InPlaceEditing is showing few icons (do not want to use this mode), but the dialog or the full screen dialog does not show the icons as configured in the rtePlugins. I tried rtePlugins node under inplaceediting node and under the node that has resourceType as cq/gui/components/authoring/dialog/richtext.

I would like to see the plugins in the dialog mode and in the full screen edit mode of touchUI. What am I doing wrong here?

Use this link to view the sample package i have created.

Thank you so much for your help.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Anuj,

Yes, in /apps/core/wcm/components/text/v1/text, it containing only Inplace Editing RTE plugins.

To include RTE plugins in dialog, you need to create the dialog for Text component and you can include the RTE plugins and uiSettings(Mandatory) in the dialog as shown in the screenshot.

RTEDialog2.PNG

And below is the view of  both inplace editing RTE and Dialog RTE plugins.

InPlace Editing:

InPlaceEditing.PNG

Dialog RTE PLugins:

RTEDialog1.PNG

Since, docs https://docs.adobe.com/docs/en/aem/6-3/administer/operations/page-authoring/rich-text-editor.html ​is not much clear, we(smacdonald2008​ and me) will publish the article on RTE plugins in AEM 6.x in July.

If you need the sample RTE plugins package, I can give you.

Hope this helps!!

~Ratna.

View solution in original post

11 Replies

Avatar

Level 6

You may want to take a look the AEM 6.3 core component "text", it looks like RTE and you can configure it under the policy.

The component is under the /apps/core/wcm/components/text/v1/text.

Avatar

Level 2

Hi BigT168, i checked the component you have mentioned. i think i understand the rteplugins used for inplace editing. i wanted to know about the rtePlugins if i want the same functionality in the dialog or full screen dialog.

Thank You

Avatar

Correct answer by
Level 10

Hi Anuj,

Yes, in /apps/core/wcm/components/text/v1/text, it containing only Inplace Editing RTE plugins.

To include RTE plugins in dialog, you need to create the dialog for Text component and you can include the RTE plugins and uiSettings(Mandatory) in the dialog as shown in the screenshot.

RTEDialog2.PNG

And below is the view of  both inplace editing RTE and Dialog RTE plugins.

InPlace Editing:

InPlaceEditing.PNG

Dialog RTE PLugins:

RTEDialog1.PNG

Since, docs https://docs.adobe.com/docs/en/aem/6-3/administer/operations/page-authoring/rich-text-editor.html ​is not much clear, we(smacdonald2008​ and me) will publish the article on RTE plugins in AEM 6.x in July.

If you need the sample RTE plugins package, I can give you.

Hope this helps!!

~Ratna.

Avatar

Level 2

Hi Ratna, thanks for the reply.. Please share the sample RTE plugins package, i will compare my dialog with your package.

I will be waiting for the updated document as well.

Thanks again

Avatar

Level 10

Hi Anuj,

Please mention your email ID, so that I can share you the package which contains RTE plugins.

Thanks

Ratna

Avatar

Level 2

Hi Ratna,

My email id is [Removed by moderator.  Please use the Private Message feature.]

Thank You so much for the help.

Avatar

Level 2

Hi Ratna,

My email id is [Removed by moderator.  Please use the Private Message feature.]

Thank You so much for the help.

Avatar

Level 6

Hi Ratna:

I would like to get the .content.xml under the cq:dialog. Is it impossible to post your dialog file here? I don't need the whole package, just the dialog definition.

Thanks.

Avatar

Level 6

Hi Ratna:

By any chance, do you publish the article on RTE plugins in AEM 6.x in July?

Thanks.

Avatar

Level 4

Hi Ratna,

Is there any way to add the quote feature in RTE editor.

Thanks