When I define a style using FCKConfig.CustomStyles the styling is applied in the editor.
When I point EditorAreaCSS at a css file, the styling defined in that stylesheet is NOT applied in the editor.
The style tags I set up in fckstyles.xml show up in the menu and the style tags I've defined are inserted, but the styles defined in my css file are not displayed in the editor.
Another thing I've noticed is that styles applied using the styles drop down menu are not always applied correctly. Often when I highlight a word and apply a style, the style is applied to more than just that word.
Help!
Thanks,
--Kenoli
When I point EditorAreaCSS at a css file, the styling defined in that stylesheet is NOT applied in the editor.
The style tags I set up in fckstyles.xml show up in the menu and the style tags I've defined are inserted, but the styles defined in my css file are not displayed in the editor.
Another thing I've noticed is that styles applied using the styles drop down menu are not always applied correctly. Often when I highlight a word and apply a style, the style is applied to more than just that word.
Help!
Thanks,
--Kenoli
Re: Problem using EditorAreaCSS with stylesheet
I just discovered that when I use an absolute URL (http://domain.org/styles/stylesheetpointing to the file via the URL the styles are applied. When I use a relative URL (like ../syles/stylesheet.css or FCKConfig.BasePath + '../styles/stylesheet.css' the styles are not applied. One would think there was an incorrect path being set up here, but I have checked it very carefully and tried various options.
Is the http:// . . . a require way to point to a file. I notice that the default setting is:
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
but when I do the same thing replacing fck_editorarea.css with my stylesheet, it also doesn't work.
???????
--Kenoli
Re: Problem using EditorAreaCSS with stylesheet
Re: Problem using EditorAreaCSS with stylesheet
this did not work for me neither (viewtopic.php?f=6&t=11489)
Re: Problem using EditorAreaCSS with stylesheet
Re: Problem using EditorAreaCSS with stylesheet
Try to edit this: FCKConfig.BaseHref = ' ' ;
It working for me, in my case:
FCKConfig.EditorAreaCSS = 'stile.css'
FCKConfig.BaseHref = 'http://localhost/fck/
The stile.css is situated in the root directory