RTE in multifield is not working as expected | Community
Skip to main content
trc41594544
Level 3
Jan 9, 2018 7:05 PM UTC

RTE in multifield is not working as expected

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.

25 replies

mohammedjaleel
New Participant
Jul 8, 2019 3:56 PM UTC

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

Translate
smacdonald2008
Level 10
Jan 10, 2018 12:58 AM UTC

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

Translate
trc41594544
Level 3
Jan 10, 2018 2:19 PM UTC

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

Translate
smacdonald2008
Level 10
Jan 10, 2018 7:00 PM UTC

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

Translate
smacdonald2008
Level 10
Jan 9, 2018 11:03 PM UTC

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

Translate
smacdonald2008
Level 10
Jan 9, 2018 10:38 PM UTC

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

Translate