Above steps are to add styles plugin in RTE. Which is working fine. The issue is that the style is not shown selected in the drop down when/after applied.
For Ex:
1. "Lead" style is applied to the selected text.
![rte1.JPG rte1.JPG](/t5/image/serverpage/image-id/10826i93B5B46DC6625AC4/image-size/large?v=v2&px=999)
2. The style is applied, as shown in the source code.
![rte2.JPG rte2.JPG](/t5/image/serverpage/image-id/10827i34EF5B8E8A568F9F/image-size/large?v=v2&px=999)
3. "Lead" style is not shown selected(checked) after selecting the text on which the style was applied.
![rte3.JPG rte3.JPG](/t5/image/serverpage/image-id/10829i4EDF683AFA330516/image-size/large?v=v2&px=999)
This works for AEM 6.2.
Use case: In case of huge amount of styles and entered text in the RTE, it is good authoring experience if an author can see which style is applied to which text in RTE.