Anchor tag and id issue | Community
Skip to main content
Level 3
Aug 21, 2018 6:39 PM UTC
Solved

Anchor tag and id issue

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.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Aug 22, 2018 9:00 AM UTC

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

4 replies

tulasi21Author
Level 3
Aug 22, 2018 2:56 PM UTC

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

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Aug 22, 2018 9:00 AM UTC

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

Translate
Kautuk Sahni
tulasi21Author
Level 3
Aug 21, 2018 8:27 PM UTC

Sorry forgot to mention. We are using AEM 6.3

Translate
smacdonald2008
Level 10
Aug 21, 2018 8:18 PM UTC

What version of AEM Are you using?

Translate