Hi,
I want the content within the editable area to appear as it will on the website I am creating. Obviously I have a css file on the website which defines H1, H2 etc. Can I get the editor to use that css file to format itself?
I have tried using the fckstyles.xml file to add formatting but this is duplicating the css, and also adds style attributes to my H1 tags etc.
Can anyone please tell me what the best way to get the editor to link up with my site css is please.
Many thanks!
I want the content within the editable area to appear as it will on the website I am creating. Obviously I have a css file on the website which defines H1, H2 etc. Can I get the editor to use that css file to format itself?
I have tried using the fckstyles.xml file to add formatting but this is duplicating the css, and also adds style attributes to my H1 tags etc.
Can anyone please tell me what the best way to get the editor to link up with my site css is please.
Many thanks!
RE: Display formatted content in the editor
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
Just change that to point to where your css file is, and the editor area should use that to style itself. It will also use that style sheet when the user clicks the preview button on the editor.