FCKConfig.BaseHref = '' ; FCKConfig.ProcessHTMLEntities = ; FCKConfig.Plugins.Add( 'autogrow' ); FCKConfig.AutoGrowMax = 500; // default FCKeditor toolbars, but removed unnecessary buttons FCKConfig.ToolbarSets["Default"] = [ ['Source','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteWord'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], '/', ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], '/', ['Style','FontFormat','FontName','FontSize'], ['TextColor','BGColor'], ['FitWindow','ShowBlocks','-','About'] // No comma for the last row. ] ; FCKConfig.ToolbarSets["Basic"] = [ ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] ] ; // an optimized FCKeditor Toolbar for phpwcms FCKConfig.ToolbarSets["phpwcms_default"] = [ ['Source','FitWindow','Preview','ShowBlocks','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteWord'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['About'], '/', ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-', 'TextColor','BGColor','-', 'OrderedList','UnorderedList','Outdent','Indent','-', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Blockquote','CreateDiv'], ['Link','Unlink','Anchor'], ['Rule','Image','Flash','Table','SpecialChar'], ['Style'], '/', ['FontFormat','FontName','FontSize'] ] ; // a minimized FCKeditor Toolbar for phpwcms FCKConfig.ToolbarSets["phpwcms_basic"] = [ ['Bold','Italic','Underline','OrderedList','UnorderedList','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Link','Unlink','TextColor','BGColor','Image'], ['FitWindow','Source'] ] ; (Sept. 2009) if(!empty($phpwcms['FCK_FileBrowser'])) { ?> FCKConfig.LinkBrowserURL = 'filebrowser.php?opt=10'; FCKConfig.LinkBrowserWindowWidth = 380; FCKConfig.ImageBrowserURL = 'filebrowser.php?opt=11'; FCKConfig.ImageBrowserWindowWidth = 380; FCKConfig.FlashBrowserURL = 'filebrowser.php?opt=10'; FCKConfig.FlashBrowserWindowWidth = 380;