RTE in multifield is not working as expected | Community
Skip to main content
trc41594544
Level 3
January 9, 2018

RTE in multifield is not working as expected

  • January 9, 2018
  • 4 replies
  • 8155 views

Hi all,

I am using AEM 6.2 SP1 CFP9. I am running in to issues with rich text editor in multi field. I copied richtext present at  /libs/cq/gui/components/authoring/dialog/richtext in to apps. I created a component with multi field using ACS AEM Commons multi field widget, i have rich text in mutifield.

The problem is when i create link in RTE and save for the first time, link will be working. If i open the dialog and save RTE again even with out editing, It is removing href and saving the data.

For example: if i have link as <a href="https://forums.adobe.com/content/geo/a.html" target="_self">Link 1</a> in the first save. If i open the dialog and save it again, it is transforming to

<a target="_self">Link 1</a>"

Any thoughts on this issue would be helpful.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

smacdonald2008
Level 10
January 9, 2018

This is a bug. Please open a support ticket to it can be fixed.

smacdonald2008
Level 10
January 9, 2018

Tomorrow - i am going to test Coral/Granite MF for 6.3 on same use case.

smacdonald2008
Level 10
January 10, 2018

How are you writing out the value of the RTE in HTL?

trc41594544
Level 3
January 10, 2018

Hi,

Thanks for the reply. As we are using ACS AEM commons multifiled, we are storing RTE data in JSON. We use WcmUsePojo to get the property in to back end, process the JSON and use that in output in HTL.

I added loggers in Java and checked also, the property value is not having href at all there also. I think the issue is occurring as soon as you open the dialog, it is stripping out href.

Hope this answered your question.

Thanks

smacdonald2008
Level 10
January 10, 2018

I am doing this use case right now to verify if i can reproduce your results on AEM 6.2.

mohammedjaleel
July 8, 2019

Hello

The issue with using RTE (cq/gui/components/authoring/dialog/richtext )  within multifield (granite/ui/components/coral/foundation/form/multifield)   still exists on 6.5 version. It doesnt store rte property in the nodesinstead it creates a seperate node Has anyone got any solution for this