Hello,
i'm using Drupal 6.1 and i've to add some personalized styles under the "style" combo in the FCK's tollbar. I've a small problem with my personal needs for it.
I need the "select 'nd apply" feature (like is it now for all the default styles) but i need it with div tags, if i use a div tag to apply my personal style
the style is applied to the whole content of the edited area instead of just the selected text. If i use a span tag it works but the span element ignore the width definition so in the end: is useless.
Any of you got similar problems and have a solution?
EDIT:
- and.. is possible to apply a class instead of the inline style to the tag? If yes, how?
Thanks for any reply,
Mat.
i'm using Drupal 6.1 and i've to add some personalized styles under the "style" combo in the FCK's tollbar. I've a small problem with my personal needs for it.
I need the "select 'nd apply" feature (like is it now for all the default styles) but i need it with div tags, if i use a div tag to apply my personal style
FCKConfig.CustomStyles =
{
'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } },
'Data evento' : { Element: 'div', Styles : { 'border-bottom' : '1px #bd7803 solid', 'width':'750px', 'padding-bottom':'5px', 'padding-top': '5px' } }
};the style is applied to the whole content of the edited area instead of just the selected text. If i use a span tag it works but the span element ignore the width definition so in the end: is useless.
Any of you got similar problems and have a solution?
EDIT:
- and.. is possible to apply a class instead of the inline style to the tag? If yes, how?
Thanks for any reply,
Mat.

Re: How to modify corerctly the style config of FCK
I've found a solution for the , it can be replaced with a tag. Seems to work good with the select an' apply feature.
Regarding my second question: is possible to apply a class instead of the inline style?
No one got a reply?
Maybe that is just a fake-support forum? 0.o
Re: How to modify corerctly the style config of FCK
To create personal styles using class instead of inline styles, so skipping the FCK editor style formatting (can create some problem with crossbrowsing styling), you have to work on the file fckstyle.xml
This file contain the definition of the styles used by the combo "Styles".
To add your personal styles with class simply add this bunch of lines:
Where:
- STYLE_NAME: is the name of the style in the combo box
- TAG_NAME: is the tag applyed to the text by the style function within FCK
- CLASS_NAME: is the name of the CSS class defined in your CSS file
-Mat.