Can we append inline styles directly instead of custom classes in RTE
Example : when custom style is selected in RTE it is appending as
<span class="text-blue"><span> instead of that can we append inline styles
like <span style="font-size: 23px;
Please provide suggestions!
Solved! Go to Solution.
Hi @Satish2info ,
If you have enabled source code plugin, IMHO It's absolutely OK to have inline styles with RTE. I have used many times in my past specially in Email Campaign.
However, It is best practice to add styles through dialog
Hope that helps!
Thank you for your reply,
Yes, we can able to achieve with RTE but my question is when we using the RTE when we select the particular style it will append corresponding style class instead of that i have to append direct style in RTE. Can we able to do this?
RTE works like : <span class="text-blue"><span> instead of that can we append inline styles
but i have to append directly inline styles <span style="font-size: 23px; color: #FFF;"></span>
Hi @SantoshSai ,
As you mentioned you have used many times in the Email Campaign ,
We have used RTE in Email Campaign, when we use this it is appending classes directly instead of inline styles we are facing the issues with Gmail client bcz Gmail only supports inline styles so we are trying to achieve this through RTE. Could you please explain more about how you have achieved this in the email Campaign or you have used any alternative without using RTE.
For the email templates, you can use internal css styling and still live with class name instead of inline styling.