External link in rich text editor | Community
Skip to main content
Level 2
October 16, 2015
Solved

External link in rich text editor

  • October 16, 2015
  • 4 replies
  • 1193 views

Hi,

when i try to insert a link to an external site, target and title attributes are ignored.

For example, is impossible to use target=_blank.

 

Thanks

4 replies

joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

By default these tags are not allowed. You might want to adapt the /libs/cq/xssprotection/config.xml file in your repository (this is 5.6.1, but the path likely hasn't changed in 6.0)

Regards,
Jörg

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015
essewebAuthor
Level 2
October 16, 2015

Thanks,

i'll try it .

AmitVishwakarma
Community Advisor
Community Advisor
January 19, 2025

To enable target="_blank" and title in AEM's Rich Text Editor (RTE):

  1. Update RTE Configuration: Modify the RTE config to allow these attributes (in the editorconfig file).
  2. Check HTML Sanitization: Ensure the HTML sanitizer isn't stripping out these attributes.
  3. Use Source Code View: Manually add the attributes in the source code view as a temporary solution.

These steps should allow the external link attributes to work as expected.