by
KK » Wed May 11, 2011 6:58 pm
Hi,
That method you mentioned should work. Maybe the styles defined in your CSS files are overriding the inline values - you'll have to dig further to troubleshoot it.
There are actually several ways of applying colors to elements in the richtext editor -
The ideal way of specifying colors to post elements is through the use of styles defined in the CSS stylesheets. Then you only need to add the class attribute to elements by going into the source.
The going into the source can be avoided altogether by showing your CSS styles in the form of a dropdown right in the toolbar of your richtext editor - please see the 'custom_styles' section of
http://www.couchcms.com/docs/tags-refer ... htext.html.
Finally, if do want to allow setting arbitrary colors via the richtext editor, add the 'toolbar='full' to the definition of the editable region e.g.
- Code: Select all
<cms:editable name='desc' label='Description'
desc='Enter description of property here'
toolbar='full'
type='richtext'/>
This will add buttons that will show the color palette allowing the user to choose the foreground/background colors of all elements.
Hope this helps. Do let us know.