thephpguru wrote:I am trying to figure out what file to edit to customize FCKConfig.EditorAreaCSS = '/myownstyles.css' ;. Is the correct file fckconfig.js. If yes, I edited that file and my styles do not show in the styles drop down menu. I want to have styles that appear in the styles drop down menu. I tried to edit fckstyles.xml but the definitions I added/removed did not affect the drop down menue. How can I add styles to the drop down menu? I am using PHP 5.
<script language="JavaScript"> // function to activate a link in the toolbar function linkOn(currentLink, cell) { currentLink.style.color = "#FFFFFF"; currentLink.style.fontWeight = "bold"; currentLink.style.textDecoration = "underline";
var currentCell = document.getElementById(cell); currentCell.style.backgroundColor = "#CCCCCC"; }
// function to deactivate a link in the main toolbar
var currentCell = document.getElementById(cell); currentCell.style.backgroundColor = "#FFFFFF";
} // function to activate a link in the submenu function sublinkOn(currentLink, cell) { currentLink.style.color = "#CCCCCC"; currentLink.style.fontWeight = "bold"; currentLink.style.textDecoration = "underline";
var currentCell = document.getElementById(cell); currentCell.style.backgroundColor = "#666666"; } // function to deactivate the buttons in the submenu function sublinkOff(currentLink, cell) { currentLink.style.color = "#666666"; currentLink.style.fontWeight = "bold"; currentLink.style.textDecoration = "none";
var currentCell = document.getElementById(cell); currentCell.style.backgroundColor = "#CCCCCC";
}
// function to show submenu
function showLayer(layerid){ var layer = document.getElementById(layerid); layer.style.visibility = "visible"; }
// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word FCKConfig.CleanWordKeepsStructure = false ;
// Only inline elements are valid. FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ;
// Attributes that will be removed FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,hspace,valign' ;
// The distance of an indentation step. FCKConfig.IndentLength = 40 ; FCKConfig.IndentUnit = 'px' ;
// Alternatively, FCKeditor allows the use of CSS classes for block indentation. // This overrides the IndentLength/IndentUnit settings. FCKConfig.IndentClasses = [] ;
// The following value defines which File Browser connector and Quick Upload // "uploader" to use. It is valid for the default implementaion and it is here // just to make this configuration file cleaner. // It is not possible to change this value using an external file or even // inline when creating the editor instance. In that cases you must set the // values of LinkBrowserURL, ImageBrowserURL and so on. // Custom implementations should just ignore it. var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
// Don't care about the following two lines. It just calculates the correct connector // extension to use for the default File Browser (Perl uses "cgi"). var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ;
Re: FCKConfig.EditorAreaCSS