Hello Team,
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)
Solved! Go to Solution.
Views
Replies
Total Likes
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.
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.
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
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies