May 15, 2020
Estimated Post Reading Time ~

AEM 6.4 Touch UI Rich Text Editor Remove Bold and Add Strong

AEM RTE Bold plugin wraps text with “b” tag by default, but now “b” tag is not recommended so far and for accessibility also we need “Strong” tag.
<b> is a style – we know what “bold” is supposed to look like.

<strong> however is an indication of how something should be understood. “Strong” could (and often does) mean “bold” in a browser, but it could also mean a lower tone for a speaking program like Jaws (for blind people) or be represented by an underline (since you can’t bold a bold) on a Palm Pilot.
So in this blog I am going to tell you how can we change “b” tag in to “Strong” tag.

1. Add htmlRules node of type nt:unstructured in parallel of rtePlugins node.

Note: Name of htmlRules node can’t be change.


2. Add docType/typeConfig node of type nt:unstructured under htmlRules node.
3. Set the property useSemanticMarkup={Boolean}true on typeConfig node.


For testing your configuration Drop your component on a page and open dialog and configure your RTE and save. After save the dialog, go to the inspect element and see your bold text. That should be between <Strong> tag.



By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.