因为下载下来的压缩包里面有包含很多在我们使用时,用不到的,不删除也行。看个人喜好下面以PHP为例,进行程序瘦身

删除所有”_”开头的文件和文件夹   
删除FCKeditor的目录下:   
fckeditor.afp 
fckeditor.asp 
fckeditor.cfc 
fckeditor.cfm 
fckeditor.lasso 
fckeditor.pl 
fckeditor.py 
htaccess.txt 
license.txt 
删除语言包editor\lang中除中文和英文以外的语言   
删除skin目录下除默认皮肤以外的文件夹   
filemanager/browser/default/connectors/目录下除php以外的文件   
filemanager/upload/目录下除php以外的文件   
如果你不想要表情包 删除 editor\images\smiley下的msn文件夹及表情按钮   
好了 精简完毕

我们通常把编辑器用以个文件夹存放、通常情况下 我们可以明白为fckeditor或editor

找到里面两关键文件 fckeditor_php4.php   fckeditor_php5.php    这两个文件的代码相差不了多少,很显然跟php版本有关

打开这两个文件

XML/HTML代码
function FCKeditor( $instanceName )    
{    
     $this->InstanceName = $instanceName ;    
     $this->BasePath      = './editor/' ;    默认编辑器所在的文件位置 
     $this->Width         = '100%' ;        默认编辑器宽 
     $this->Height        = '350' ;         默认编辑器高 
     $this->ToolbarSet    = 'Default' ;      默认编辑器SKIN 
     $this->Value         = '' ;            初始值

$this->Config        = array() ;    
}

FCKeditor设置文件 "fckconfig.js"

XML/HTML代码
FCKConfig.CustomConfigurationsPath = '' ; // 自定义配置文件路径和名称    
FCKConfigFCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css'; // 编辑区的样式表文件    
FCKConfig.EditorAreaStyles = '' ; // 编辑区的样式表风格    
FCKConfig.ToolbarComboPreviewCSS =''; //工具栏预览CSS    
FCKConfig.DocType = '' ;//文档类型    
FCKConfig.BaseHref = ''; // 相对链接的基地址    
FCKConfig.FullPage = false ; //是否允许编辑整个HTML文件,还是仅允许编辑BODY间的内容    
FCKConfig.StartupShowBlocks = false ;//决定是否启用"显示模块"    
FCKConfig.Debug = false ;//是否开启调试功能    
FCKConfigFCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; //皮肤路径    
FCKConfig.PreloadImages= //预装入的图片    
FCKConfigFCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; //插件路径    
FCKConfig.AutoDetectLanguage = true ; //是否自动检测语言    
FCKConfig.DefaultLanguage    = 'zh-cn' ; //默认语言    
FCKConfig.ContentLangDirection = 'ltr' ; //默认的文字方向,可选"ltr/rtl",即从左到右或从右到左    
FCKConfig.ProcessHTMLEntities = true ; //处理HTML实体    
FCKConfig.IncludeLatinEntities = true ; //包括拉丁文    
FCKConfig.IncludeGreekEntities = true ;//包括希腊文    
FCKConfig.ProcessNumericEntities = false ;//处理数字实体    
FCKConfig.AdditionalNumericEntities = '' ;    //附加的数字实体    
FCKConfig.FillEmptyBlocks = true ; //是否填充空块    
FCKConfig.FormatSource    = true ; //在切换到代码视图时是否自动格式化代码    
FCKConfig.FormatOutput    = true ; //当输出内容时是否自动格式化代码    
FCKConfig.FormatIndentator = '     ' ; //当在源码格式下缩进代码使用的字符    
FCKConfig.StartupFocus = false ; //开启时焦点是否到编辑器,即打开页面时光标是否停留在fckeditor上    
FCKConfig.ForcePasteAsPlainText = false ; //是否强制粘贴为纯文件内容    
FCKConfig.AutoDetectPasteFromWord = true ; //是否自动探测从word粘贴文件,仅支持IE    
FCKConfig.ShowDropDialog = true ;//是否显示下拉菜单    
FCKConfig.ForceSimpleAmpersand = false ;//是否不把&符号转换为XML实体    
FCKConfig.TabSpaces    = 0 ;//按下Tab键时光标跳格数,默认值为零为不跳格    
FCKConfig.ShowBorders = true ;//合并边框    
FCKConfig.SourcePopup = false ;//弹出    
FCKConfig.ToolbarStartExpanded = true ;//启动fckeditor工具栏默认是否展开    
FCKConfig.ToolbarCanCollapse = true ;//是否允许折叠或展开工具栏    
FCKConfig.IgnoreEmptyParagraphValue = true ;//是否忽略空的段落值    
FCKConfig.FloatingPanelsZIndex = 10000 ;//浮动面板索引    
FCKConfig.HtmlEncodeOutput = false ;//是否将HTML编码输出    
FCKConfig.TemplateReplaceAll = true ;//是否替换所有模板    
FCKConfig.ToolbarLocation = 'In' ;//工具栏位置,    
FCKConfig.CustomConfigurationsPath = '' ; // 自定义配置文件路径和名称    
FCKConfigFCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css'; // 编辑区的样式表文件    
FCKConfig.BaseHref = ''; // 相对链接的基地址    
FCKConfig.Debug = true/false; // 是否开启调试功能,当调用FCKDebug.Output()时,会在调试窗中输出内容    
FCKConfigFCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/'; // 设置皮肤    
FCKConfig.AutoDetectLanguage = true/false ; // 是否自动检测语言    
FCKConfig.DefaultLanguage = 'zh-cn' ; // 设置默认语言    
FCKConfig.ContentLangDirection = 'ltr/rtr'; // 默认文字方向,ltr左,rtr右    
FCKConfig.FillEmptyBlocks = true/false ; // 使用这个功能,可以将空的块级元素用空格来替代    
FCKConfig.FormatSource = true/false; // 切换到代码视图时,是否自动格式化代码    
FCKConfig.FormatOutput = true/false; // 当输出内容时是否自动格式化代码    
FCKConfig.FormatIndentator = ""; // 当在“源码格式”下缩进代码使用的字符    
FCKConfig.GeckoUseSPAN = true/false; // 是否允许SPAN标记代替B,I,U标记    
FCKConfig.StartupFocus = true/false; // 开启时是否FOCUS到编辑器    
FCKConfig.ForcePasteAsPlainText = true/false;// 强制粘贴为纯文本    
FCKConfig.ForceSimpleAmpersand = true/false; // 是否不把&符号转换为XML实体    
FCKConfig.TabSpaces = 0/1; // TAB是否有效    
FCKConfig.TabSpaces = 4; // TAB键产生的空格字符数    
FCKConfig.ShowBorders = true/false; // 是否合并边框    
FCKConfig.ToolbarStartExpanded = true/false; // 页面载入时,工具栏是否展开,点“展开工具栏”时才出现    
FCKConfig.ToolBarCanCollapse = true/false; // 是否允许展开折叠工具栏    
FCKConfig.ToolbarSets = object ; // 编辑器的工具栏,可以自行定义,删减,可参考已存在工具栏    
FCKConfig.EnterMode = 'p'; // 编辑器中直接回车,在代码中生成,可选为p | div | br    
FCKConfig.ShiftEnterMode = 'br'; // 编辑器中Shift+回车,在代码中生成,可选为p | div | br    
FCKConfig.ContextMenu = 字符串数组; // 右键菜单的内容    
FCKConfig.FontColors = ""; // 文字颜色列表    
FCKConfig.FontNames = ""; // 字体列表    
FCKConfig.FontSizes = ""; // 字号列表    
FCKConfig.FontFormats = ""; // 文字格式列表    
FCKConfig.StylesXmlPath = ""; // CSS样式列表的XML文件的位置    
FCKConfig.TemplatesXmlPath = ""; // 模版的XML文件位置    
FCKConfig.SpellChecker = "ieSpell/Spellerpages"; // 拼写检查器    
FCKConfig.IeSpellDownloadUrl = ""; // 下载拼写检查器的网址    
FCKConfigFCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/'; // 表情文件存放路径    
FCKConfig.SmileyImages = ''; // 表情文件名称列表,具体参考默认设置    
FCKConfig.SmileyColumns = 8; // 表情窗口显示表情列数    
FCKConfig.SmileyWindowWidth = 320; // 表情窗口显示宽度,此窗口会因为表情文件的改变而作调整    
FCKConfig.SmileyWindowHeight = 240; // 表情窗口显示高度,此窗口会因为表情文件的改变而作调整    
FCKConfig.FullPage = true/false; // 是否允许编辑整个HTML文件,还是仅允许编辑BODY间的内容    
   
   
上传设置    
   
var _FileBrowserLanguage          = 'php' ;          // asp | aspx | cfm | lasso | perl | php | py       
var _QuickUploadLanguage          = 'php' ;          // asp | aspx | cfm | lasso | php[/code]    
//第一个是文件浏览器使用的语言,第二个快速上传使用的语言,改成你需要的    
FCKConfig.LinkUploadAllowedExtensions          = "" ;                          // empty for all    
FCKConfig.LinkUploadDeniedExtensions =".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$"   
//这是两个允许和拒绝上传的文件类型列表    
FCKConfig.ImageBrowser = false ;是否在插入图片功能里面启用服务器文件浏览功能    
FCKConfigFCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=ImageConnector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;    
Type=Image    表示文件类型是image这会使文件浏览器定位到文件上传路径/image/文件夹下面    
FCKConfig.FlashBrowser = false ;是否在插入flash功能中启用服务器文件浏览功能    
FCKConfig.LinkUpload = false ;是否启用插入链接的快速上传功能    
FCKConfig.ImageUpload = false ;是否启用图片快速上传功能    
FCKConfig.FlashUpload = false ;是否启用flash上传功能    
   
   
服务器文件设置    
   
文件浏览器的设置:    
define('LIN_ROOT', substr(dirname(__FILE__), 0, -47));
//echo LIN_ROOT;

$Config['UserFilesPath'] = '/upfiles/' ; //路径

$Config['UserFilesAbsolutePath'] = LIN_ROOT.'/upfiles/' ;//绝对路径!

ConfigAllowedExtensions.Add          "File", ""    
ConfigDeniedExtensions.Add          "File", "php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|com|dll|vbs|js|reg|cgi"    
ConfigAllowedExtensions.Add          "Image", "jpg|gif|jpeg|png|bmp"    
ConfigDeniedExtensions.Add          "Image", ""    
ConfigAllowedExtensions.Add          "Flash", "swf|fla"    
ConfigDeniedExtensions.Add          "Flash", ""    
ConfigAllowedExtensions.Add          "Media", "swf|fla|jpg|gif|jpeg|png|avi|mpg|mpeg|mp(1-4)|wma|wmv|wav|mid|midi|rmi|rm|ram|rmvb|mov|qt"    
ConfigDeniedExtensions.Add          "Media", ""    
这是4个不同的filetype类型 分别对应了 前台编辑器的 插入链接 插入图片 插入flash 插入媒体 4个功能

这里的文件类型与上面提到的两处文件类型是一致的要改必须许全改
快速上传:

XML/HTML代码
ConfigIsEnabled = False //是否启用快速上传    
ConfigUserFilesPath = "/UserFiles/"   
   
//如果想上传到 /test/upload/yyymmdd/的文件夹下面    
则修改为 ConfigUserFilesPath = "/test/upload/" & year(now())& right("0"& month(now()),2)&right("0" & day(now()),2)

FCKeditor设置多个工具栏样式

FCKeditor中自带了两种工具栏样式,Default 和Base。可是我现在想再加一种工具栏样式。 我试了一下。将Default样式的设置复制了一下 改为FCKConfig.ToolbarSets["Blogedit"],里面个体的工具栏项我就不写了。可是当我在调用这个工具栏时,却提示我说工具 栏Blogedit设置没有找到,这是怎么回事啊?难道FCKeditor只能使用Def ault 和Base这两种样式吗? 找到   fckconfig.js   里面设置 这里我添加了   ddd   工具栏样式 要用的时候只需要 在

引用的时候 $this->ToolbarSet = 'ddd' ;   就OK 了

XML/HTML代码
FCKConfig.ToolbarSets["Default"] = [    
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],    
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],    
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],    
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],    
'/',    
['Bold','Italic','Underline','StrikeThrough','-','Subscrīpt','Superscrīpt'],    
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],    
['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']    
] ;    ************************************************************ 
FCKConfig.ToolbarSets["ddd"] = [    
         ['OrderedList','UnorderedList','-','Link','Unlink','-','About','Bold','Italic','Underline','StrikeThroug    
h','-','Subscrīpt','Superscrīpt']    
] ;   记得在改变时要清楚一些IE属性 清除缓存,不然效果不会马上提现出来。

有时间我在吧! ADODB+SMARTY中应用板块写上去

2008/04/13

XML/HTML代码
include("editor/fckeditor.php") ;    
$oFCKeditor = new FCKeditor('content');    
   
$oFCKeditor->Value       = '123456' ;    
   
if($action == 'edit') {    
   
$result=$db->GetRow("SELECT * FROM {$db_prefix}articles   WHERE articleid IN ($lin)"); // 读取修改评论显示初始值    
if ($result === false) die("failed");    
$smarty->assign('re',$result);    
$Value=html_entity_decode($result['content']);   //获得编辑器的初始值    
$oFCKeditor->Value    ="".$Value."";   //进行转化,不然你编辑器显示的是HTML 代码    
}    
   
$contentarea = $oFCKeditor->CreateHtml();    
$smarty->assign('contentarea',$contentarea);

下面是我配置过的config文件:


/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * Editor configuration settings.
 *
 * Follow this link for more information:
 * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
 */ FCKConfig.CustomConfigurationsPath = '' ; FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
FCKConfig.EditorAreaStyles = '' ;
FCKConfig.ToolbarComboPreviewCSS = '' ; FCKConfig.DocType = '' ; FCKConfig.BaseHref = '' ; FCKConfig.FullPage = false ; // The following option determines whether the "Show Blocks" feature is enabled or not at startup.
FCKConfig.StartupShowBlocks = false ; FCKConfig.Debug = false ;
FCKConfig.AllowQueryStringDebug = true ; FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
FCKConfig.SkinEditorCSS = '' ;    // FCKConfig.SkinPath + "|<minified css>" ;
FCKConfig.SkinDialogCSS = '' ;    // FCKConfig.SkinPath + "|<minified css>" ; FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ; FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; // FCKConfig.Plugins.Add( 'autogrow' ) ;
// FCKConfig.Plugins.Add( 'dragresizetable' );
FCKConfig.AutoGrowMax =  ; // FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;    // ASP style server side code <%%>
// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;    // PHP style server side code
// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;    // ASP.Net style tags <asp:control> FCKConfig.AutoDetectLanguage    = true ;
FCKConfig.DefaultLanguage        = 'zh-cn';
FCKConfig.ContentLangDirection    = 'ltr'; //处理HTML实体 
FCKConfig.ProcessHTMLEntities    = false ;
FCKConfig.IncludeLatinEntities    = true ;
FCKConfig.IncludeGreekEntities    = true ; FCKConfig.ProcessNumericEntities = false ; FCKConfig.AdditionalNumericEntities = ''  ;        // Single Quote: "'" //是否填充空块
FCKConfig.FillEmptyBlocks    = false ; FCKConfig.FormatSource        = false ;
FCKConfig.FormatOutput        = false ;
FCKConfig.FormatIndentator    = '' ; FCKConfig.EMailProtection = 'encode' ; // none | encode | function
FCKConfig.EMailProtectionFunction = 'mt(NAME,DOMAIN,SUBJECT,BODY)' ; FCKConfig.StartupFocus    = false ;
FCKConfig.ForcePasteAsPlainText    = false ;
FCKConfig.AutoDetectPasteFromWord = true ;    // IE only.
FCKConfig.ShowDropDialog = true ;
FCKConfig.ForceSimpleAmpersand    = false ;
FCKConfig.TabSpaces        =  ;
FCKConfig.ShowBorders    = true ;
FCKConfig.SourcePopup    = false ;
FCKConfig.ToolbarStartExpanded    = true ;
FCKConfig.ToolbarCanCollapse    = true ;
FCKConfig.IgnoreEmptyParagraphValue = true ;
FCKConfig.FloatingPanelsZIndex =  ;
FCKConfig.HtmlEncodeOutput = false ; FCKConfig.TemplateReplaceAll = true ;
FCKConfig.TemplateReplaceCheckbox = true ; FCKConfig.ToolbarLocation = 'In' ; FCKConfig.ToolbarSets["xkzi"] = [
    ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
    ['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']
]; FCKConfig.ToolbarSets["Default"] = [
    ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
    ['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']
] ; FCKConfig.ToolbarSets["MySet"] = [
    ['Bold','Italic','Underline','-','Undo','Redo','-','Smiley','Image','-','Link','Unlink','-']
] ; FCKConfig.EnterMode = 'br' ;            // p | div | br
FCKConfig.ShiftEnterMode = 'br' ;    // p | div | br FCKConfig.Keystrokes = [
    [ CTRL +  /*A*/, true ],
    [ CTRL +  /*C*/, true ],
    [ CTRL +  /*F*/, true ],
    [ CTRL +  /*S*/, true ],
    [ CTRL +  /*T*/, true ],
    [ CTRL +  /*X*/, true ],
    [ CTRL +  /*V*/, 'Paste' ],
    [ CTRL +  /*INS*/, true ],
    [ SHIFT +  /*INS*/, 'Paste' ],
    [ CTRL +  /*X*/, 'Cut' ],
    [ SHIFT +  /*DEL*/, 'Cut' ],
    [ CTRL +  /*Z*/, 'Undo' ],
    [ CTRL +  /*Y*/, 'Redo' ],
    [ CTRL + SHIFT +  /*Z*/, 'Redo' ],
    [ CTRL +  /*L*/, 'Link' ],
    [ CTRL +  /*B*/, 'Bold' ],
    [ CTRL +  /*I*/, 'Italic' ],
    [ CTRL +  /*U*/, 'Underline' ],
    [ CTRL + SHIFT +  /*S*/, 'Save' ],
    [ CTRL + ALT +  /*ENTER*/, 'FitWindow' ],
    [ SHIFT +  /*SPACE*/, 'Nbsp' ]
] ; FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ;
FCKConfig.BrowserContextMenuOnCtrl = false ;
FCKConfig.BrowserContextMenu = false ; FCKConfig.EnableMoreFontColors = true ;
FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; FCKConfig.FontFormats    = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ;
FCKConfig.FontNames        = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
FCKConfig.FontSizes        = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ; FCKConfig.StylesXmlPath        = FCKConfig.EditorPath + 'fckstyles.xml' ;
FCKConfig.TemplatesXmlPath    = FCKConfig.EditorPath + 'fcktemplates.xml' ; FCKConfig.SpellChecker            = "ieSpell/Spellerpages" ;    // 'ieSpell' | 'SpellerPages'
FCKConfig.IeSpellDownloadUrl    = 'http://www.iespell.com/download.php' ;
FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;    // Available extension: .php .cfm .pl
FCKConfig.FirefoxSpellChecker    = false ; FCKConfig.MaxUndoLevels =  ; FCKConfig.DisableObjectResizing = false ;
FCKConfig.DisableFFTableHandles = true ; FCKConfig.LinkDlgHideTarget        = false ;
FCKConfig.LinkDlgHideAdvanced    = false ; FCKConfig.ImageDlgHideLink        = false ;
FCKConfig.ImageDlgHideAdvanced    = false ; FCKConfig.FlashDlgHideAdvanced    = false ; FCKConfig.ProtectedTags = '' ; // This will be applied to the body element of the editor
FCKConfig.BodyId = '' ;
FCKConfig.BodyClass = '' ; FCKConfig.DefaultStyleLabel = '' ;
FCKConfig.DefaultFontFormatLabel = '' ;
FCKConfig.DefaultFontLabel = '' ;
FCKConfig.DefaultFontSizeLabel = '' ; FCKConfig.DefaultLinkTarget = '' ; // 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' ; FCKConfig.CustomStyles =
{
    'Red Title'    : { Element : 'h3', Styles : { 'color' : 'Red' } }
}; // Do not add, rename or remove styles here. Only apply definition changes.
FCKConfig.CoreStyles =
{
    // Basic Inline Styles.
    'Bold'            : { Element : 'strong', Overrides : 'b' },
    'Italic'        : { Element : 'em', Overrides : 'i' },
    'Underline'        : { Element : 'u' },
    'StrikeThrough'    : { Element : 'strike' },
    'Subscript'        : { Element : 'sub' },
    'Superscript'    : { Element : 'sup' },     // Basic Block Styles (Font Format Combo).
    'p'                : { Element : 'p' },
    'div'            : { Element : 'div' },
    'pre'            : { Element : 'pre' },
    'address'        : { Element : 'address' },
    'h1'            : { Element : 'h1' },
    'h2'            : { Element : 'h2' },
    'h3'            : { Element : 'h3' },
    'h4'            : { Element : 'h4' },
    'h5'            : { Element : 'h5' },
    'h6'            : { Element : 'h6' },     // Other formatting features.
    'FontFace' :
    {
        Element        : 'span',
        Styles        : { 'font-family' : '#("Font")' },
        Overrides    : [ { Element : 'font', Attributes : { 'face' : null } } ]
    },     'Size' :
    {
        Element        : 'span',
        Styles        : { 'font-size' : '#("Size","fontSize")' },
        Overrides    : [ { Element : 'font', Attributes : { 'size' : null } } ]
    },     'Color' :
    {
        Element        : 'span',
        Styles        : { 'color' : '#("Color","color")' },
        Overrides    : [ { Element : 'font', Attributes : { 'color' : null } } ]
    },     'BackColor'        : { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } },     'SelectionHighlight' : { Element : 'span', Styles : { 'background-color' : 'navy', 'color' : 'white' } }
}; // The distance of an indentation step.
FCKConfig.IndentLength =  ;
FCKConfig.IndentUnit = 'px' ; // Alternatively, FCKeditor allows the use of CSS classes for block indentation.
// This overrides the IndentLength/IndentUnit settings.
FCKConfig.IndentClasses = [] ; // [ Left, Center, Right, Justified ]
FCKConfig.JustifyClasses = [] ; // 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    = 'aspx' ;    // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage    = 'aspx' ;    // 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 ; FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
FCKConfig.LinkBrowserWindowWidth    = FCKConfig.ScreenWidth * 0.7 ;        // 70%
FCKConfig.LinkBrowserWindowHeight    = FCKConfig.ScreenHeight * 0.7 ;    // 70% FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;    // 70% ;
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;    // 70% ; FCKConfig.FlashBrowser = true ;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;    //70% ;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;    //70% ; FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension ;
FCKConfig.LinkUploadAllowedExtensions    = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ;            // empty for all
FCKConfig.LinkUploadDeniedExtensions    = "" ;    // empty for no one FCKConfig.ImageUpload = true ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions    = ".(jpg|gif|jpeg|png|bmp)$" ;        // empty for all
FCKConfig.ImageUploadDeniedExtensions    = "" ;                            // empty for no one FCKConfig.FlashUpload = true ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Flash' ;
FCKConfig.FlashUploadAllowedExtensions    = ".(swf|flv)$" ;        // empty for all
FCKConfig.FlashUploadDeniedExtensions    = "" ;                    // empty for no one //MSN
//FCKConfig.SmileyPath    = FCKConfig.BasePath + 'images/smiley/msn/' ;
//FCKConfig.SmileyImages    = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ; //腾讯QQ
FCKConfig.SmileyPath    = FCKConfig.BasePath + 'images/smiley/qq/' ;
FCKConfig.SmileyImages    = ['0.gif','1.gif','2.gif','3.gif','4.gif','5.gif','6.gif','7.gif','8.gif','9.gif','10.gif','11.gif','12.gif','13.gif','14.gif','15.gif','16.gif','17.gif','18.gif','19.gif','20.gif','21.gif','22.gif','23.gif','24.gif','25.gif','26.gif','27.gif','28.gif','29.gif','30.gif','31.gif','32.gif','33.gif','34.gif','35.gif','36.gif','37.gif','38.gif','39.gif','40.gif','41.gif','42.gif','43.gif','44.gif','45.gif','46.gif','47.gif','48.gif','49.gif','50.gif','51.gif','52.gif','53.gif','54.gif'] ;
FCKConfig.SmileyColumns =  ;
FCKConfig.SmileyWindowWidth        =  ;
FCKConfig.SmileyWindowHeight    =  ; FCKConfig.BackgroundBlockerColor = '#ffffff' ;
FCKConfig.BackgroundBlockerOpacity = 0.50 ; FCKConfig.MsWebBrowserControlCompat = false ; FCKConfig.PreventSubmitHandler = false ; FCKConfig.setUploadImg = function(_res){ 
    if(!_res) return;
    objDrop=parent.document.getElementById("upimgSelect");
    var nIndex = objDrop.selectedIndex;
    var oLen=objDrop.length;
    if(oLen>)
    {
        for(var i=; i<oLen; i++){
            if(objDrop.options[i].value==_res) return;
        }
    }
    objDrop.options[oLen] = new Option('Image'+[oLen+], _res);
} /*
FCKConfig.setUploadImg = function(_res){ 
    if(!_res) return;
    objDrop=parent.document.getElementById("upimgSelect");
    objText=parent.document.getElementById("txtUpImg");
    var nIndex = objDrop.selectedIndex;
    if(objDrop.options[0].value=="")objDrop.options[0]=null;
    var oLen=objDrop.length;
    if(oLen>0)
    {
     for(var i=0; i<oLen; i++){
         if(objDrop.options[i].value==_res) return;
     }
 }
 objDrop.options[oLen] = new Option('Image'+[oLen+1], _res);
 objDrop.selectedIndex = nIndex;
 if(objText.value=="" || objText.value.length==0)objText.value=_res;
}
*/

fckeditor 配置的更多相关文章

  1. 在线富文本编辑器FckEditor配置(.Net Framework 3.5)

    进入FCKeditor文件夹,编辑 fckconfig.js 文件.1.上传设置  .  var _FileBrowserLanguage         = 'php' ;         // a ...

  2. FCKeditor配置与使用

    fckeditor - (1)资料介绍与安装 fckeditor介绍  FCKeditor是一个专门使用在网页上属于开放源代码的所见即所得文字编辑器.  1.fckeditor官网:http://ww ...

  3. FckEditor 配置手册中文教程详细说明

    http://www.jb51.net/article/17965.htm 首先,FCKEDITOR的性能是非常好的,用户只需很少的时间就可以载入 FCKEDITOR所需文件.对于其他在线编辑器来说, ...

  4. fckeditor配置详解

    使用配置设置: . FCKConfig.CustomConfigurationsPath = '' ; // 自定义配置文件路径和名称 . FCKConfigFCKConfig.EditorAreaC ...

  5. fckeditor配置

    <!DOCTYPE html> <html > <head> <title>发布</title> <meta name="v ...

  6. JavaWEB开发时FCKeditor类似office界面的ajax框架,加入后就能做界面类似office,能进行简单的文本编辑操作+配置手册...

    2019独角兽企业重金招聘Python工程师标准>>> FCKeditor是一款功能强大的开源在线文本编辑器(DHTML editor),它使你在web上可以使用类似微软Word 的 ...

  7. asp.net文本编辑器(FCKeditor)

    FCKeditor介绍 FCKeditor是一个功能强大支持所见即所得功能的文本编辑器,可以为用户提供微软office软件一样的在线文档编辑服务.它不需要安装任何形式的客户端,兼容绝大多数主流浏览器, ...

  8. FCKEDITOR在.NET中的使用

    FCKEDITOR在.NET中的使用 FCKeditor介绍 FCKeditor是一个功能强大支持所见即所得功能的文本编辑器,可以为用户提供微软office软件一样的在线文档编辑服务.它不需要安装任何 ...

  9. FCKeditor jsp配置

    FCKeditor jsp配置 FCKeditor是sourceforge.net上面的一个开源项目,主要是实现在线网页编辑器的功能,可以让web程序拥有如MS Word这样强大的编辑功能.官方网站为 ...

随机推荐

  1. bzoj1621

    题解: 简单判断一下怎么分 如果分的话继续递归 代码: #include<bits/stdc++.h> using namespace std; int n,k; int js(int x ...

  2. UAC 注册表 WIN64 OS 运行时主题

    首先EXE程序是32位,DelphiIDE对Project默认是启用主题的,默认情况在WIN64 OS下运行时,无管理员权限. WIN64 OS,默认情况下UAC是启用的. 上述默认情况下,EXE 是 ...

  3. (C/C++学习笔记) 十二. 指针

    十二. 指针 ● 基本概念 位系统下为4字节(8位十六进制数),在64位系统下为8字节(16位十六进制数) 进制表示的, 内存地址不占用内存空间 指针本身是一种数据类型, 它可以指向int, char ...

  4. 莪的拽、像省田各号①样没尽頭队——需求改进&原型设计

    需求改进&原型设计 1. 需求&原型改进 经过老师的指导以及组内成员的讨论后,我们认为之前的需求分析已经比较准确完备. 根据电子宠物的形象结构特点,以及模拟屏幕的空间限制,我们设计出了 ...

  5. Beta 冲刺(7/7)

    前言 队名:拖鞋旅游队 组长博客:https://www.cnblogs.com/Sulumer/p/10129067.html 作业博客:https://edu.cnblogs.com/campus ...

  6. screen 命令 http://man.linuxde.net/screen

    http://man.linuxde.net/screen -A 将所有的视窗都调整为目前终端机的大小. -d <作业名称> 将指定的screen作业离线. -h <行数> 指 ...

  7. [C#] 网站程序ASP.NET的性能诊断 - CPU分析

    微软提供了标准的CLR性能分析类库 https://github.com/Microsoft/clrmd 这个类库是开源的代码.能够获取CLR runtime里面几乎所有的信息. 如何获取clrmd编 ...

  8. C# 高性能的数组 高性能数组队列实战 HslCommunication的SharpList类详解

    本文将使用一个gitHub开源的组件技术来实现这个功能 github地址:https://github.com/dathlin/HslCommunication                     ...

  9. 基础练习 Huffuman树

     基础练习 Huffuman树   时间限制:1.0s   内存限制:512.0MB        问题描述 Huffman树在编码中有着广泛的应用.在这里,我们只关心Huffman树的构造过程. 给 ...

  10. Android manifest 获取源代码

    /********************************************************************************* * Android manifes ...