Problems with styles dropdown in FCKEditorX

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
shewoof

Problems with styles dropdown in FCKEditorX

Post 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.
User avatar
myshko
Forum Members
Forum Members
Posts: 102
Joined: Wed Feb 07, 2007 2:36 pm

Re: Problems with styles dropdown in FCKEditorX

Post 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.
Last edited by myshko on Tue Apr 24, 2007 6:08 am, edited 1 time in total.
SimonSchaufi

Re: Problems with styles dropdown in FCKEditorX

Post 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.
Last edited by SimonSchaufi on Thu Jun 07, 2007 3:05 pm, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Problems with styles dropdown in FCKEditorX

Post 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
SimonSchaufi

Re: Problems with styles dropdown in FCKEditorX [Solved]

Post by SimonSchaufi »

Problem solved!
axxe16

Re: Problems with styles dropdown in FCKEditorX

Post 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...  ???
SimonSchaufi

Re: Problems with styles dropdown in FCKEditorX

Post by SimonSchaufi »

try to clear the browser cache and reload the page. then it should work
Locked

Return to “CMSMS Core”