Copy /libs/cq/xssprotection/config.xml to /apps/cq/xssprotection/config.xml.
Last updated on
May 16, 2021
|
Also applies to CQ 5.6
Issue: Open in New Window feature of the hyperlink component doesn't work inside the RTE component
Solution: Declare the target attribute in the AntiSamy configuration file in CRXDE Light.
-
-
Open /apps/cq/xssprotection/config.xml.
-
In the common-attributes section, add the following target attribute declaration.
<attribute name="target>
<regexp-list>
<regexp value="[a-zA-Z0-9-_\$]+" />
</regexp-list>
</attbribute>
-
ind the a tag declaration by searching the term <tag name="a".
-
Add the line below in the list of attributes:
<attribute name="target" />
-
Save the file. Now, the link will open in a new window if the option is selected.
Additional information
This issue occurs because the XSS filter trims the target attribute of the a element.