Hello,
I have installed FCK for users of my site.(FCK 6.x-1.3) without Wysiwyg module
Everything OK.
But how can I get a new style in the dropdown style list.
For now, I have :
Marker : Yellow
Marker : Green
Big
Small
Etc.

I have made the following :
Copy fckstyles.xml from sites/all/modules/fckeditor/fckeditor to sites/all/themes/basic (my theme)
I have configured FCK CSS in admin/settings/fckeditor/edit/myprofil :
Predefined styles : define path to fckstyles.xml
Predefined styles path : /sites/all/themes/basic/fckstyles.xml
I left untouched Editor CSS with default value “use theme CSS” and nothing in CSS path because I don’t intend to add a new CSS.
Nothing more is specified here.

I know for sure that system is looking for fckstyles.xml in the right directory because if I make wrong the path or the name, I get an error.

To look how it works I tried to suppress the Yellow marker or to add a red marker in the xml file, emty cache, but I see always the same default style in my drop down list.

Do I have to do another thing for it to work?
I red a lot on that subject here, and some posts specify to add style button (I already have it), update fckconfig.js (is it for older release? Or do I actually still need to do something there? If yes what?)

Last but not least : at the end I wand to add something similar to a CSS class like :
/* style : chapter */
.chapitre {
font-weight: bold;
color: #B46414;
font-size: 14px;
}
Will it be possible via the xml file or do I need to add a custom CSS file?

Comments

jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Could you empty your browser cache? Could you upload your styles.xml here?

sahuni’s picture

Thanks for your reply.
I emptied my browse cache and it was OK afterwards.

And to give a clue to newbyes like me, I added to my fckstyles.xml :

<Style name="chapter" element="span">
	<Style name="color" value="#B46414" />
	<Style name="font-size" value="14px" />
	<Style name="font-weight" value="bold" />
</Style> 

Thanks again and all the best

jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)