Page 1 of 1

Problems with styles dropdown in FCKEditorX

Posted: Wed Apr 18, 2007 11:39 pm
by shewoof
Hi,

I have installed several websites using CMS Made Simple and have had a recurring problem which I really need to fix nox.

Essentially, the Styles dropdown box is not populating. I have avoided this problem in the past by simply removing it from displaying in the editor - but I need it now and can't seem to find any helpful documentation on the internet to help me solve this problem. It doesn't even show the defaults let alone letting me try to add my own ...

Apart from this, CMSMS rocks :-)

The sites are installed on Debian linux running zeus webserver. I am using CMSMS vs 1.0.5 and FCKEditorX vs 1.0.5.

Re: Problems with styles dropdown in FCKEditorX

Posted: Tue Apr 24, 2007 6:01 am
by myshko
Hi Shewoof,


I think the problem could be with how your style sheets are attached.

If you have linked them manually in the head of your HTML templates like this:

Code: Select all

<head>

<title>Some Title</title>

<link href="_assets/css/example.css" rel="stylesheet" type="text/css" />

</head>
CMSMS and fckeditor don't recognize those styles.

To make them appear in fckeditor, you need to:

1. Add all the info from your style sheet into Layout > Stylesheets from the admin area
2. Attach this style sheet to your template Layout > Templates > Attach stylesheets
3. Remember to paste all your styles in the fckeditor toolbar styles pane Extensions > fckeditorX then clickthe styles tab.

Can be long winded I know, especially when you like to keep your css defined in your HTML template.

You can use a smaller CSS file with just user classes and styles in, so anyone using the fckeditor only has access to specific styling. You just need to remember to update both css files.

Hope this makes sense. Any additional help or explanation feel free to ask.

;)

PS Forgot to mention, if you don't have the {stylesheet} tag in your HTML template, the style sheets attached within CMSMS won't be added to the page when it's rendered.

Re: Problems with styles dropdown in FCKEditorX

Posted: Thu Jun 07, 2007 2:40 pm
by SimonSchaufi
Hi!
I have the same problem and have tried it on this server and even there it doesnt work:

http://demo.opensourcecms.com/cms/admin/

User: admin
PW: demo

Can you please make an example that works???

i tried:

Code: Select all

.external{
color:red;
}
and it is not working.

Re: Problems with styles dropdown in FCKEditorX

Posted: Mon Jul 09, 2007 9:22 am
by KO
Like said earlier...
1. Add all the info from your stylesheet into Layout > Stylesheets from the admin area
2. Attach this style sheet to your template Layout > Templates > Attach stylesheets
3. Remember to paste all your styles in the fckeditor toolbar styles pane Extensions > fckeditorX then clickthe styles tab.
This last part (number 3) - you only need to add the styles you want to display in you editor. h1, h2 etc. and special ones for dropdown. And I think putting them h1 {}, h2 {}, youStyle {} etc is enough to get right styles. FCKEdiitorX will read the actuall style info from stylesheet attached to templates.

Remember that News will not work straight out of the box this way so check this... http://forum.cmsmadesimple.org/index.ph ... 844.0.html

Hope this helps,

K

Re: Problems with styles dropdown in FCKEditorX [Solved]

Posted: Tue Jul 10, 2007 12:42 pm
by SimonSchaufi
Problem solved!

Re: Problems with styles dropdown in FCKEditorX

Posted: Fri Jun 27, 2008 10:03 am
by axxe16
Hi, i have the same problem with a my project. I've try the the tree point but Styles dropdown box is populating with default value...  ???

Re: Problems with styles dropdown in FCKEditorX

Posted: Fri Jun 27, 2008 11:45 am
by SimonSchaufi
try to clear the browser cache and reload the page. then it should work