Anchor tag and id issue | Community
Skip to main content
New Participant
August 21, 2018
Solved

Anchor tag and id issue

  • August 21, 2018
  • 4 replies
  • 6594 views

Am seeing some issues with anchor tag in AEM rich text editor.

IN RTE if i use the the following:

<a href="test.com"> testing</a> -- Works well, href exists all the time.

second case:

<a href="test.com" id="test"> testing</a>

in source edit once you try to edit again, it becomes

<a  id="test"> testing</a> -- Doesn't work well, href is removed .

I have tried changing the  following file:

/apps/cq/xssprotection/config.xml

but nothing helped.

Has anyone seen this issue.

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 kautuk_sahni

You can use the link icon for hyperlinking.

Here the concept of the anchor tag is placeholder hyperlink. To jump to a location within a page.

Here is the helpx article with package to do testing:- Configuring Experience Manager Rich Text Editor Plugins in a Touch UI Component Dialog

~kautuk

4 replies

tulasi21Author
New Participant
August 22, 2018

kautuksahni​ We can try using that, but when users dump the whole html in the source edit, this issues is hard to resolve.

kautuk_sahni
kautuk_sahniAccepted solution
Employee
August 22, 2018

You can use the link icon for hyperlinking.

Here the concept of the anchor tag is placeholder hyperlink. To jump to a location within a page.

Here is the helpx article with package to do testing:- Configuring Experience Manager Rich Text Editor Plugins in a Touch UI Component Dialog

~kautuk

Kautuk Sahni
tulasi21Author
New Participant
August 21, 2018

Sorry forgot to mention. We are using AEM 6.3

smacdonald2008
New Participant
August 21, 2018

What version of AEM Are you using?