Example config FCKEditor 2.x

This is an example config commonly used for FCKEditor 2.x.

FCKConfig.CustomConfigurationsPath = '' ; 

//Here you can define a CSS you want the editor to use, usually the same URL as the site.
//FCKConfig.EditorAreaCSS = '$request.contextPath/ViewPage.action?siteNodeId=100130' ;
FCKConfig.EditorAreaCSS = '/infoglueDeliverWorking/ViewPage.action?siteNodeId=100130'; 
FCKConfig.BaseHref = '' ;
FCKConfig.FullPage = false ;
FCKConfig.Debug = false ;

FCKConfig.SkinPath = FCKConfig.BasePath 'skins/default/' ;
FCKConfig.PluginsPath = FCKConfig.BasePath 'plugins/' ;
FCKConfig.DefaultLanguage        = 'en' ;
FCKConfig.ContentLangDirection    = 'ltr' ;
FCKConfig.EnableXHTML        = true ;
FCKConfig.EnableSourceXHTML    = true ;
FCKConfig.FillEmptyBlocks    = true ;
FCKConfig.FormatSource        = true ;
FCKConfig.FormatOutput        = true ;
FCKConfig.FormatIndentator    = '    ' ;
FCKConfig.GeckoUseSPAN    = true ;
FCKConfig.StartupFocus    = false ;
FCKConfig.ForcePasteAsPlainText    = true ;
FCKConfig.ForceSimpleAmpersand    = false ;
FCKConfig.TabSpaces        = 0 ;
FCKConfig.ShowBorders    = true ;
FCKConfig.UseBROnCarriageReturn    = false ;
FCKConfig.ToolbarStartExpanded    = true ;
FCKConfig.ToolbarCanCollapse    = true ;  

//This is a InfoGlue addition which let’s you turn off styling in the dropboxes styles/formats
FCKConfig.StyleFontFormats = 'false';
FCKConfig.StyleStyles = 'false';
FCKConfig.AllowImageSizes = 'false'; 

//This part in for InfoGlue 2.1 – not in 2.0 – let’s you define available classes on img-tag.
FCKConfig.ImageClasses = 'img_left_portrait,img_left_letter,img_right_letter,img_right_portrait,img_scaled';
FCKConfig.ImageClassesNames = 'Stående vänster,Liggande vänster,Liggande höger,Stående höger,Fullbredd';  

FCKConfig.LinkClasses = 'pdf,word,excel,ppt,image,link ';
FCKConfig.LinkClassesNames = 'PDF,Word,Excel,PowerPoint,Image,Link'; 

FCKConfig.MaxUndoLevels = 15 ;

//This is where you define the toolbar. Look at the FCKEditor-site for the full list
FCKConfig.ToolbarSets["Default"] = [
    ['Cut','Copy','Paste','PasteText','Print','Undo','Redo','Find','Replace','RemoveFormat'],
    ['Bold','Italic'],
    ['OrderedList','UnorderedList'],
    ['Link','Unlink','Anchor'],
    ['Image','Table','Rule','SpecialChar','Source'],
   ['Style','FontFormat']
] ; 

FCKConfig.ToolbarSets["Basic"] = [
    ['Bold','Italic'],
    ['OrderedList','UnorderedList'],
    ['Link','Unlink','Anchor'],
    ['Image','Source']]
] ;

FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ; 

FCKConfig.FontFormats    = 'h2;h4;h3;h5;p' ; 

FCKConfig.StylesXmlPath    = '$ request.contextPath/WYSIWYGProperties!viewStylesXML.action?repositoryId=$ !request.getParameter("repositoryId")&contentId=$ !request.getParameter("contentId")&languageId=$ !request.getParameter("languageId")' ; 

FCKConfig.SpellChecker            = 'ieSpell' ;    // 'ieSpell' | 'SpellerPages'
FCKConfig.IeSpellDownloadUrl    = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;

FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = "$ request.contextPath/ViewLinkDialog!viewLinkDialogForFCKEditor.action?repositoryId=$ !request.getParameter("repositoryId")&contentId=$ !request.getParameter("contentId")&languageId=$ !request.getParameter("languageId")" ;

FCKConfig.LinkBrowserWindowWidth    = "770" ;
FCKConfig.LinkBrowserWindowHeight    = "660" ;

FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = "$ request.contextPath/ViewContentVersion!viewAssetsDialogForFCKEditor.action?repositoryId=$ !request.getParameter("repositoryId")&contentId=$ !request.getParameter("contentId")&languageId=$ !request.getParameter("languageId")";   

FCKConfig.ImageBrowserWindowWidth  = "750" ;
FCKConfig.ImageBrowserWindowHeight = "600" ;

StylesXML

<?xml version="1.0" encoding="utf-8" ?><Styles>
    <Style name="Blockcitat" element="Blockquote"/>
    <Style name="Image portrait left" element="img">
        <Attribute name="class" value="img_left_portrait" />
    </Style>
    <Style name="Image left letter" element="img">
        <Attribute name="class" value="img_left_letter" />
    </Style>
    <Style name="Image right letter" element="img">
        <Attribute name="class" value="img_right_letter" />
    </Style>
    <Style name="Image right portrait" element="img">
        <Attribute name="class" value="img_right_portrait" />
    </Style>
    <Style name="Full width" element="img">
        <Attribute name="class" value="img_scaled" />
    </Style>
</Styles>


As stated these are just examples of configurations we have used. Read more on FCKEditor homepage about configuration options.