I work for a graphic design studio and we are using fck editor that was bundled with a cms interface, how ever I am having trouble with css in the editor, we use dreamweaver for the design of all our sites and make a css.css file for all the copy then install the editor into the finished site. And there fore want the clients to only see the css we create for the editable area's we designate. Getting support on this issue has proven highly difficult as now it is holding up a site. Below is my problems and what I wish to do. Any help on this would be extremely wonderful.
When going in using fck editor the tool bar shows styles listed in the xml file, how ever I did not modify it as I wanted to use my own. In the document Fckconfig.js I have put the css file I created in lines 22 and 23 of the code, which read this
FCKConfig.EditorAreaCSS = ['http://localhost/css/css.css'];
FCKConfig.ToolbarComboPreviewCSS = 'http://localhost/css/css.css' ;
Putting the css in the above line of code has proven pointless. I need to know what I am doing wrong, as the clients need complete control over their copy, but only need access to the styles that are created with the look and feel of their website. How do I achieve giving the clients complete control of the copy but limiting them to the appearance’s we create? Do I have to hard code all the styles into the xml file and then adjust the appearance threw the editor? Or can I just create a css file like I have and link to that?
Thanks in advance.
Thu, 01/03/2008 - 19:46
#1

Re: CSS Issues
Regards
Pete
Re: CSS Issues
FCKConfig.CoreStyles.Bold = { Element : 'span', Attributes : { 'class' : 'Bold' } } ;
FCKConfig.CoreStyles.Italic = { Element : 'span', Attributes : { 'class' : 'Italic' } } ;
FCKConfig.CoreStyles.Underline = { Element : 'span', Attributes : { 'class' : 'Underline' } } ;
FCKConfig.CoreStyles.StrikeThrough = { Element : 'span', Attributes : { 'class' : 'StrikeThrough' } } ;
FCKConfig.CustomStyles =
{
'Strong Emphasis' : { Element : 'strong' },
'Emphasis' : { Element : 'em' },
'Computer Code' : { Element : 'code' },
'Keyboard Phrase' : { Element : 'kbd' },
'Sample Text' : { Element : 'samp' },
'Variable' : { Element : 'var' },
'Deleted Text' : { Element : 'del' },
'Inserted Text' : { Element : 'ins' },
'Cited Work' : { Element : 'cite' },
'Inline Quotation' : { Element : 'q' }
} ;