I am trying to add <a href="tel:+1234567890">1234567890</a> in RTE | Adobe Higher Education
Skip to main content
Level 6
March 2, 2023
Respondido

I am trying to add <a href="tel:+1234567890">1234567890</a> in RTE

  • March 2, 2023
  • 3 respostas
  • 3094 Visualizações

RTE is not able to render the same HTML as added in RTE. 

In xssProtection config

To resolve this I have added

<regexp name="telListing" value="tel:\+[0-9]+"/> <attribute name="href"> <regexp-list> <regexp name="telListing"/> </regexp-list> </attribute>

 

it is accepting <a href="tel:1234567890">1234567890</a>

but not <a href="tel:+1234567890"> 1234567890</a>

adding plus is an issue

 

Este tópico foi fechado para respostas.

3 Respostas

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorResposta
Community Advisor
March 2, 2023
aravindreddyyesugari18079
Level 2
August 9, 2024

Hi @santoshsai 

In aem as cloud service I have tried by overlaying and added the regex expression as given below but that doesn't work  , tel:1234567890 this is working but when we use + character  tel:+1234567890 this is not working and that to in only dialog , when I am trying to unlink I am not able to unlink it and  in repository its saving as tel:+1234567890   on page its rendering as expected and the functionality is working as well but when I am trying to open and edit it I am not able to unlink .

ChitraMadan
Community Advisor
Community Advisor
March 2, 2023

Hi @ronnie09 ,

 

I am able to replicate this issue in AEM 6.5.15, link is getting removed when trying to create the link in rte with tel:+1234567890 and works fine as you mentioned without the country code.

 

This article should help you with your issue:

http://www.sgaemsolutions.com/2019/12/hreftel-issue-for-international-numbers.html

 

Thanks,

Chitra

 

aravindreddyyesugari18079
Level 2
August 9, 2024

Hi @ronnie09  

 

Did this fix resolved the issue  when you are adding + ...?

 

tel:1234567890 this is working but tel:+1234567890 this is not working