Hi,
I'm trying to use
$oFCKeditor->Config['EditorAreaCSS'] = "mycssfile.css";
for the first time and there is something I would like to know:
When you have one big css file for your whole site, only made of DIV ids like this for example:
...
#area-right {
}
#area-right-title-container {
}
#area-right-title {
}
#area-right-content {
}
#area-right-content hr {
}
...
How do you make the textarea of fckeditor act as if it was #area-right-content for example?
Thanks for the help
Thu, 06/14/2007 - 23:18
#1
RE: Assign DIV id to FCKEDITOR
$oFCKeditor->Config['BodyId'] = "area-right-content";
Should do the trick
RE: Assign DIV id to FCKEDITOR
Thanks a lot!

I thought that Config['BodyId'] was only for the body in the css but you were right: it did the trick
RE: Assign DIV id to FCKEDITOR
RE: Assign DIV id to FCKEDITOR
Well, I have an unexpected problem now

The font size in FCKeditor is way too bigger than what it should be.
Lets say #area-right-content has the following style :
#area-right-content {
font-size: 110%;
}
And the original document has :
body, table, input, textarea, select {
font-size: 0.9em;
}
Normally, I should get 110% of 0.9em in #area-right-content
But it doesn't happen.
So, I need to force FCKeditor's textarea to have a base size of 0.9em.
I've tried to use
Config['BodyClass'] and Config['BodyId'] concurrently, one for the body and one for the DIV id, but it didn't work.
Any other solution in sight?
Thanks to anyone who will come up with a solution
RE: Assign DIV id to FCKEDITOR
font-size: 0.9em;
}