Bipul Dobhal
-
10/9/2006 7:01:07 AM
Re: KCKEditor Styles
Hi,
I didn't understand your problem. As I had solved my problem related to styles of the FCKeditor.. If you want to add new styles in the combo box then its very simple...
Just go through the following steps
1.Create your own class in "Main.css" like
.ParagaraphBody { Font-Size: 10px; Font-Family: verdana }
2. Open the /cmsdesk/aspnet_client/FCLEditor/fckstyles.xml file either in notepad or VS.net and add new styles as follows:
<style name="Paragaraph Body" element = "span"> <artribute name="class" value="ParagraphBody"> </style> <style name="PHeading" element = "span"> <artribute name="class" value="PHeading"> </style>
3. Open the /cmsdesk/aspnet_client/FCLEditor/fckconfig.js file in either in notepad or VS.net and replace the existing line FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/Fck_editorarea.css' with the new line as follows:
FCKConfig.EditorAreaCSS = "/Main.css";
4. Open the web.config file in the code and set the new key in appsetting tag named CMSCSSVirtualPath as a key :
<add key="CMSCSSVirtualPath" value="http://www.KenticoCMS/CSS/Main.css"></add>
Note: This value is the path of ur .css file
Then compile the code the look out your style in fckeditor......
Thanks, Bipul Dobhal
|