Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
I wanted to see if anything can be added to change the color of text, when inputting a post, can this be done?

I went into source to change the color, place in span, however this didnt work?

<span style="color:#db1a1a;"> Change color </span>
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.
ahh, yeah its set via CSS, will look into the matter some more, and build a very of styles for custom within couch. Awesome idea dude.

Will blast this tonight.
3 posts Page 1 of 1
cron