For some reason whenever I view my page in publish mode, the aria-label is gone... for example <a href="home.html" aria-label="home page">Home</a>
for: cq/gui/components/authoring/dialog/richtext
I literally updated the crx/de with aria-label, and done @ context = 'html'
turns into:
<a href="home.html">Home</a>
How can I retain the aria-label="home page"?
Please help, thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Here's what you need to do, exactly:
<attribute name="aria-label">
<regexp-list>
<regexp name="anything"/>
</regexp-list>
</attribute>
I've actually written an article for this if you want to see some visual gestures -> https://sourcedcode.com/blog/aem/aem-rich-text-editor-rendering-aria-labels
You'd need to overlay /libs/cq/xssprotection/config.xml and add the required attributes you want to allow in RTE.
You can refer to how to overlay it here.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-overlay-libs-cq-xss...
Here's what you need to do, exactly:
<attribute name="aria-label">
<regexp-list>
<regexp name="anything"/>
</regexp-list>
</attribute>
I've actually written an article for this if you want to see some visual gestures -> https://sourcedcode.com/blog/aem/aem-rich-text-editor-rendering-aria-labels
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies