<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.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.