Help with editor

Author Message

Valenti salas

Monday 13 December 2004 12:18:46 pm

hi,

I'm trying to find the option to change the font color in the editor but i can't find it. Is there any option to change it? maybe I must use the 'custom tag' ? and if this is true, where i can find information about custom tags in the editor?

Thanks.

Mark Marsiglio

Monday 13 December 2004 7:09:14 pm

You should create a new inline custom tag. The XML format does not allow text color.

The custom tag should probably just specify a span tag which you should apply a CSS style to to change the color.

To add a custom tag:
-Add a new custom .tpl file in the sites override folder - design/SITENAME/override/templates/content/datatype/view/ezxmltags/ (If this folder does not exist, create it.)
-Name your custom tag by adding it to the content.ini.append in both the main and admin siteaccess settings folders. If a content.ini.append does not exist, create one and add the line

[CustomTagSettings]
AvailableCustomTags[]=tagname

-Assign the tag to content by wrapping the content in the <custom> tag, with attribute name='tagname'

<custom name='tagname'>Text to which the tag will be applied</custom>

Look at the factbox.tpl in the standard or base design folder for an example of the syntax for the new .tpl

Good luck...

Mark

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

Mark Marsiglio

Monday 13 December 2004 7:11:03 pm

I should mention that if you use a text field instead of xml text field you will be able to apply the font color tag, but this method does not separate design from content so it is not preferred for standards compliance.

There are some threads about this on this forum if you want to read a little more on the differences....

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

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