RTE Link | Adobe Higher Education
Skip to main content
SantoshSai
Community Advisor
Community Advisor
May 10, 2022
Risolto

RTE Link

  • May 10, 2022
  • 3 risposte
  • 1470 visualizzazioni

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

 

Questo argomento è stato chiuso alle risposte.
Migliore risposta di kautuk_sahni

@santoshsai Please report this to Support team.

 

3 risposte

Anmol_Bhardwaj
Community Advisor
Community Advisor
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
Community Advisor
Community Advisor
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
MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
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
Community Advisor
Community Advisor
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
kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerRisposta
Community Manager
May 12, 2022

@santoshsai Please report this to Support team.

 

Kautuk Sahni