Expand my Community achievements bar.

SOLVED

RTE Link

Avatar

Community Advisor

Hey Everyone,

 

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

Screen Shot 2022-05-10 at 2.09.44 PM.png

 

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

Screen Shot 2022-05-10 at 2.11.30 PM.png
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

 

1 Accepted Solution

Avatar

Correct answer by
Administrator

@SantoshSai Please report this to Support team.

 



Kautuk Sahni

View solution in original post

5 Replies

Avatar

Community Advisor

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.

Avatar

Community Advisor

@Anmol_Bhardwaj 

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

Screen Shot 2022-05-11 at 12.46.23 PM.png

Regards,

Santosh

Avatar

Community Advisor

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

 

Avatar

Community Advisor

@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

Avatar

Correct answer by
Administrator

@SantoshSai Please report this to Support team.

 



Kautuk Sahni