Is there any standard/ pre-defined way to inject styling information for html snippets generated from the rich text editor?
like <p> must be <p class="abc"> or adding attributes on the fly for html elements generated.
For Custom Style plugin in RTE,
Please refer to this community article:-
// AEM | RTE – Custom Styles Plugin
I hope this would help you.
I am also facing the similar issue and i want to add the style into P tag like this <p style="margin-bottom:10px;"></p> while editing from RTE editor,
i am able to change via source edit,But is there anyway to add inline style to ptag ?
See these articles that show this...
Color picker does it - http://experience-aem.blogspot.com/2016/04/aem-62-touch-ui-dialog-rte-rich-text-editor-color-picker-...
Also for copy classes from external website - http://experience-aem.blogspot.com/2015/12/aem-61-this-and-that.html#AEM_61_COPY_PASTE_HTML_TAG_ATTR...
Out of the box - no. However - there may be a way using code. I am looking into this.