Expand my Community achievements bar.

SOLVED

External link in rich text editor

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10
4 Replies

Avatar

Employee Advisor

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

Avatar

Correct answer by
Level 10

Avatar

Level 4

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.