Hi
Here is a way to support your own CSS
Add these lines BEFORE the method initEditor() in fck_editor.js
// 20-10-2003: Start - Steen Rabol <srabol@mail.tele.dk>
if(URLParams["CSSStyleValues"] || URLParams["CSSStyleNames"])
{
if(URLParams["CSSStyleValues"])
{
config.StyleNames = (URLParams["CSSStyleNames"]);
}
if(URLParams["CSSStyleValues"])
{
config.StyleValues = (URLParams["CSSStyleValues"]);
}
// Create a new Style selector
TBI.prototype.FontStyle = new TBCombo( "FontStyle" , "doStyle(this)" , lang["FontStyle"] , config.StyleNames, config.StyleValues, 'CheckStyle("cmbFontStyle")') ;
}
if (URLParams["CSSFileName"])
{
config.EditorAreaCSS = config.BasePath + 'css/' + URLParams["CSSFileName"] ;
}
// 20-10-2003: end - Steen Rabol <srabol@mail.tele.dk>
Now you can use
&CSSStyleNames=;Mycss 1;Mycss 2
as parm to set the Styelnames
use &CSSStyleValues=;Mycss1;Mycss2 to set the values for the new style.
Also use
&CSSFileName=mycssfilename.css to load your new CSS file. Place the file in /FCKEditor/css
Hope that it helps someone - I like it
Best
Steen
Mon, 10/20/2003 - 04:34
#1