I've a requirement where I need to add custom css class to <ul> tag in rich text editor. The style plugin adds the span tag inside <li> tag.
Is there any way to achieve it?
The RTE plugins are always not easy to tweak, to achieve your goal(which very common requirement), there is nothing OOTB.
You may need to create a new plugin or extend.
Some example of creating or customizing plugins.
Experiencing Adobe Experience Manager - Day CQ: AEM 63 - Touch UI RTE (Rich Text Editor) Color Picke...
AEM | RTE – Custom Styles Plugin – Touch UI – Need is the mother of invention …
I created a style plugin to add css class to any HTML element in RTE
AEM - Touch UI - RTE HTML Element Selector, Custom Style Plugin & Color Picker Plugin