Re: href attribute is removed while saving the text in the RTE component | Community
Skip to main content
Level 3
June 4, 2022

Re: href attribute is removed while saving the text in the RTE component

  • June 4, 2022
  • 1 reply
  • 871 views

Hi @maans ,

 

Please check if there is overlay for the /libs/cq/xssprotection/config.xml for the same in /apps and there is change in the configuration for the a tag as shown below (default config)

If html tags are getting lost in RTE are mainly due to AntiSamy rules in AEM. Please check the error logs for the same(org.apache.sling.xss.impl.HtmlToHtmlContentContext AntiSamy warning). If not, then please add your error logs.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 2
June 6, 2022

Hi @bipinch1 ,

Link plugin is working as expected. But in my plugin when I am trying to add a href attribute in <a> tag. In this case, href is removed while saving the RTE.

Error logs:

06.06.2022 11:42:05.265 *ERROR* [sling-default-3-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.7176] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL http://www.adobe.com/go/aem6_5_activation: java.net.SocketException: Connection reset
06.06.2022 11:42:25.381 *INFO* [sling-default-3-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.7176] org.apache.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}->https://business.adobe.com:443: Connection reset
06.06.2022 11:42:25.381 *INFO* [sling-default-3-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.7176] org.apache.http.impl.execchain.RetryExec Retrying request to {s}->https://business.adobe.com:443
06.06.2022 11:42:31.011 *WARN* [[0:0:0:0:0:0:0:1] [1654495951006] POST /content/wbg/us/en/testpage0/_jcr_content/root/twit_text HTTP/1.1] com.adobe.cq.wcm.core.components.internal.servlets.DMAssetPostProcessor Last file reference modification was null for 'fileReference' property name.

 

Thanks

arunpatidar
Community Advisor
Community Advisor
June 6, 2022

Can you check if plugin is generating correct html?

Arun Patidar