This may seem like a strange request but here goes. I want to be able to customise the editor to allow a user to choose a pre-defined style. For example "Paragraph Red". I am sure this is pretty simple and the behaviour i would expect would be the HTML to look something like this:
<p class="Paragraph Red">This is some test text</p>
However, what i want to do is allow the user to choose "Paragraph Red" but the generated HTML to add a style tag to the selected element with the style information from the predefined style. E.g.
<p style="color: red">This is some test text</p>
My reason for doing this is i want to build a user friendly interface for generating our HTML newsletters. Unfortunately a lot of mail clients (especially the web based ones) require inline styles to be used for the output to be rendered correctly.
<p class="Paragraph Red">This is some test text</p>
However, what i want to do is allow the user to choose "Paragraph Red" but the generated HTML to add a style tag to the selected element with the style information from the predefined style. E.g.
<p style="color: red">This is some test text</p>
My reason for doing this is i want to build a user friendly interface for generating our HTML newsletters. Unfortunately a lot of mail clients (especially the web based ones) require inline styles to be used for the output to be rendered correctly.