Rte Pulg-in Link is not working as expected on teaser component | Community
Skip to main content
Level 2
July 27, 2023
Solved

Rte Pulg-in Link is not working as expected on teaser component

  • July 27, 2023
  • 1 reply
  • 961 views

Hello Team,

 

We are facing an issue with Working Hyper Links are erased from RTE-Description field of Teaser component after updating the content in the RTE-Description field.

 

Suppose in rte-description we have already a link text but when we try to add one more link the last link is behaving as normal text.

Please give us the solution.

 

AEM version we are using is: (6.5.13.0)

 

 

 

 

 

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 Ekhlaque

Hi @tk415 ,It is the default behavior of the RTE in AEM. When you edit the RTE-Description field and add new content, the RTE might automatically remove certain HTML elements, including links, if they don't conform to the allowed markup,you can configure allowed markup for the RTE to control what HTML elements are allowed in the RTE-Description field.You can define a whitelist of allowed elements, attributes, and protocols, including links.

 

To configure allowed markup, you can follow these steps:

-Navigate to (http://localhost:4502/libs/cq/ui/content/dumplibs.html).
-"Configure" link for the desired RTE configuration (e.g., "Text (Text)").
-Add <a> to the list of allowed elements and configure other attributes and protocols as needed.

1 reply

Ekhlaque
Adobe Employee
EkhlaqueAdobe EmployeeAccepted solution
Adobe Employee
July 27, 2023

Hi @tk415 ,It is the default behavior of the RTE in AEM. When you edit the RTE-Description field and add new content, the RTE might automatically remove certain HTML elements, including links, if they don't conform to the allowed markup,you can configure allowed markup for the RTE to control what HTML elements are allowed in the RTE-Description field.You can define a whitelist of allowed elements, attributes, and protocols, including links.

 

To configure allowed markup, you can follow these steps:

-Navigate to (http://localhost:4502/libs/cq/ui/content/dumplibs.html).
-"Configure" link for the desired RTE configuration (e.g., "Text (Text)").
-Add <a> to the list of allowed elements and configure other attributes and protocols as needed.

tk415Author
Level 2
July 28, 2023

Hi @ekhlaque ,

 

Thanks for the solution but I am not able to find the file where exactly we need to modify or add <a> tag because rte link is already been added on the teaser component.

If you give example to explain this that would be very helpful.

 

Thanks