You can't really put in more than one stylesheet, but you can create a new stylesheet which just imports multiple stylesheets eg create a new stylesheet "fck.css" which has the following in it
@import "style1.css"; @import "style2.css";
I find this very useful as you can import your sites stylesheet, and tweek if especially for the fck editor (remove unnecessary margins, padding etc)
Unfortunatly the stylesheets to import depend on the content I want to edit. So I should be able to import the stylesheets dynamicly. Each Content/Page could have its own set of stylesheets. If they only had one stylesheet, the solution would be to use the EditorAreaCSS-config-parameter. If I want to use the import-method, I have to create a temporary stylesheet for every page I want to edit. This could generate enormous traffic and work for our application server, because we have clients with hundreds of pages. Nevertheless, I'll try it. Thank you for the tip.
and the generate_css.asp (or php or perl of whatever) takes the querystring parameters and writes out the correct import statements? Oh, and make sure your dynamic page sets the header content type to 'text/css'
yes, it's realy easy to integrate one external stylesheet. fckEditor.Config.EditorAreaCSS = 'path_to_your_stylesheet'. But is it possible to integrate more than one external stylesheet for example, stylesheet1, stylesheet2, stylesheet3, all of them applied at the same time? Cheers Jenzener
I do generate temporary css-files dynamicly (tmpe21313123.css for example) so the content-type can't be a problem. And to be more precise, ff doesn't ignore all styles. I think only link-styles (a) aren't displayed correctly.
RE: Link external stylesheets
@import "style1.css";
@import "style2.css";
I find this very useful as you can import your sites stylesheet, and tweek if especially for the fck editor (remove unnecessary margins, padding etc)
RE: Link external stylesheets
Each Content/Page could have its own set of stylesheets. If they only had one stylesheet, the solution would be to use the EditorAreaCSS-config-parameter.
If I want to use the import-method, I have to create a temporary stylesheet for every page I want to edit. This could generate enormous traffic and work for our application server, because we have clients with hundreds of pages. Nevertheless, I'll try it.
Thank you for the tip.
RE: Link external stylesheets
Can't you create the css dynamically?
ie
FCKConfig.EditorAreaCSS = 'generate_css.asp?A=1&B=2';
and the generate_css.asp (or php or perl of whatever) takes the querystring parameters and writes out the correct import statements? Oh, and make sure your dynamic page sets the header content type to 'text/css'
RE: Link external stylesheets
RE: Link external stylesheets
fckEditor.Config.EditorAreaCSS = 'path_to_your_stylesheet'.
But is it possible to integrate more than one external stylesheet for example, stylesheet1, stylesheet2, stylesheet3, all of them applied at the same time?
Cheers Jenzener
RE: Link external stylesheets
so i'm still looking for a good solution.
RE: Link external stylesheets
RE: Link external stylesheets
And to be more precise, ff doesn't ignore all styles. I think only link-styles (a) aren't displayed correctly.