How to change color of text ? Custom style.

How to change color of text ? Custom style.

Sunday 30 March 2008 12:01:00 am - 4 replies

Author Message

Calvin Liu

Sunday 30 March 2008 3:11:01 am

maybe you can define it in your external css file.

Martynas Bilevičius

Sunday 30 March 2008 10:30:34 pm

Yes i know that i can add new style class in css, but how to add new style class to Online Editor. One of way is creat custom tag, but i fink that it is not dificult to use it for me but for simple user i fink it is to difucult. So maybe it is simple way change text color.

Martynas Bilevičius

Tuesday 01 April 2008 10:04:07 pm

So how is the best way change text color in Online Editor. It is in possible add new styles?

Mark Marsiglio

Wednesday 02 April 2008 4:59:43 am

Yes, you can add new styles for any of the existing tags in the OE. Look at the content.ini for examples. Then add your new options in content.ini.append.php for your siteaccess and admin siteaccess.

Once you do, you can right click on any element for which you have allow custom classes and select "Properties". From there you can set the class.

When you preview and publish the content, it will be published like this: <p class='yourcustomclassname"> (if you added a custom class called 'yourcustomclassname' to the <paragraph> tag in content.ini

If you want the color to show up in the OE, you have to add your class to the editor.css in the ezdhtml extension design folder.

The downside of this is that you cannot apply color to only one part of a tag element (i.e. a few words in the middle of a paragraph) unless you created a custom class for the the bold or italic tag which used css to make it not bold, but a color instead.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.