RTE Link | Community
Skip to main content
SantoshSai
New Participant
May 10, 2022
Solved

RTE Link

  • May 10, 2022
  • 3 replies
  • 1467 views

Hey Everyone,

 

I have a requirement for RTE to allow special character in link, details are in below
1. Using special character. eg. "<" ">" 

 

but when author tries to re-configure it, it shows encoded value as below


I believe while saving value in JCR will be encoded but need to decode while retrieving it. 

1. one option is to overlay  

 

/libs/clientlibs/granite/richtext/core/js/plugins/LinkPlugin.js

 

 and customize it to decode .

anyone faced similar issue or have any other solution for it?

Regards,

Santosh

 

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

@santoshsai Please report this to Support team.

 

3 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
May 12, 2022

@santoshsai Please report this to Support team.

 

Kautuk Sahni
MayurSatav
New Participant
May 11, 2022

Hi @santoshsai ,

 

You can customize RegEx for the href attribute value under the XssProtection file. Check the below blog for a clear understanding.

 

https://medium.com/@mayursatav/enable-html-tags-attributes-in-rte-555dd60d62ee

 

SantoshSai
New Participant
May 11, 2022

@mayursatav 

Thank for your response; However, the above solution is for managing HTML source, We can manage it in a multiple way Delegating core Text component, Sling Model etc, 

But my question was for rendering saved value on JCR and would like to have displayed same in dialog.

Regards,

Santosh

Santosh Sai
Anmol_Bhardwaj
New Participant
May 11, 2022

I have tried the same thing in OOTB RTE and cannot replicate this issue. COuld be due to some customisation done to your RTE component. 

Please try the same in OOTB RTE, and check your custom code once.

SantoshSai
New Participant
May 11, 2022

@anmol_bhardwaj 

Checked on (AEM 6.5.5 onwards) we-retail page, It is reproducible on a Text component 



Regards,

Santosh

Santosh Sai