I am using ForeColor in TinyMCE Rich Text Editor.
it uses a style to apply forecolor to the selected text as it looks
<span style="color: rgb(255, 0, 0);" mce_style="color: #ff0000;">Hello</span>.
I want to apply the css class instead of "style" here. How to apply css class here? These Css classes contain ColorCodes.
Example:
<span class="colorRed">Hello</span>
My CSS Class
.colorRed
{
color: #ff0000;
}
Thank you
source
share