I have tried numerous ways but can't get the editor to use my css style sheet for the toolbar. It either uses the default CSS file or the default values. I think it's it a path problem but not sure how to get it to work.
My configuration is:
html - web page root folder
hmtl/FCKeditor - fckeditor folder
html/my.css - the style sheet I want to use
I have the following values set:
Based on this can someone tell me what variables to set to get this to work and if there is any that needs to be configured in any of FCK config.js files.
Thanks
My configuration is:
html - web page root folder
hmtl/FCKeditor - fckeditor folder
html/my.css - the style sheet I want to use
I have the following values set:
$oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = 'FCKeditor/'; $oFCKeditor->Width = '80%' ; $oFCKeditor->Height = '700' ; $oFCKeditor->Config['FullPage'] = true ; $oFCKeditor->Config['EditorAreaCSS'] = '../my.css' ; $oFCKeditor->Config['ToolbarComboPreviewCSS'] = '../my.css' ; $oFCKeditor->Value = $page_source; $oFCKeditor->Create() ;
Based on this can someone tell me what variables to set to get this to work and if there is any that needs to be configured in any of FCK config.js files.
Thanks
Re: Loading different toolbar CSS styles
Re: Loading different toolbar CSS styles
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Loading different toolbar CSS styles
FCKConfig.EditorAreaCSS = '/club.css' ; //the club.css file is in the same directory as the html file
FCKConfig.ToolbarComboPreviewCSS = '/club.css' ;
but the dropdown values for style still only show the default list:
Custom Bold 1
Custom Italic
Title
Code
Title H3
Does the css file have to have any special formatting? - What else can I try?
Thanks
Re: Loading different toolbar CSS styles
Maybe a future version can get the styles from a css file.
Re: Loading different toolbar CSS styles
Is this really true, you have to store the CSS definitions in the .XML file? That would mean a real chance of things getting out of step with each other.
I'm looking at http://dev.fckeditor.net/wiki/Components/Styles which seems to suggest that you can point the config at the css file, however I cannot get anything to change from the default XML settings.
Regards
Pete