Page 1 of 1

FCK format box using div with ID

Posted: Sat Sep 30, 2006 3:54 am
by jeroendelau
Hello,

I'm pretty sure my problem is not server or version related but just in case:
cmsms:                      1.0.1
Operating system  Linux
Kernel version           2.6.17-11_1.BHsmp
Apache version         1.3.37 (Unix)
PHP version           4.4.4
MySQL version         4.1.21

I have the following problem, in my template, content is placed in a div with the id content. The style sheet specifically sets styles for this content div. So all my headers, tables and lists are defined as follows:

#content h1{...}
#content p{...}
#content table{...}

The FCK does not display any of these styles. I understand why the FCK editor does not display the styles, it is unaware that it should use the #content styles. As soon as I wrap my content in a content div using the source editor the styles show up.

eg.

  ...
  ...
  ...


However I do not want to tell my client that he has to start each new page with a content div. Is there a way to tell the FCK editor to use the styles from a certain ID without the above mentioned sollution?

Thanks in advance,
Jeroen

Re: FCK format box using div with ID

Posted: Sat Sep 30, 2006 8:54 am
by Dr.CSS
Most of the time people don't want to see the style applied untill they see the page, but you can go to Extensions and select FCKeditorX and it has a second tab for inputting the styles from your style sheets but I think this is just for the Style drop down in the tool bar.

I use tinyMCE for my default editor, mostly because I use Firefox and more than 1 content edit box makes it act like it's still loading the page forever, and tinyMCE has all the styles in a drop down without having to add them in and it loads way faster.

Re: FCK format box using div with ID

Posted: Sun Oct 01, 2006 10:33 am
by stinhambo
Do you know how I can add TinyMCE to CMSMS?

I am using the latest version by the way...

Re: FCK format box using div with ID

Posted: Sun Oct 01, 2006 1:17 pm
by Dr.CSS

Re: FCK format box using div with ID

Posted: Sun Oct 08, 2006 6:33 am
by jeroendelau
Thnx for the help,

I'll can't use tiny MCE now. I already trained the client in FCK. But for future reference i'll check it out.