Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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)

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

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.

Avatar

Level 2

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