`
gmayvess
  • 浏览: 7114 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
文章分类
社区版块
存档分类
最新评论

FCK配置文件说明

阅读更多
*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 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://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Configurations_Settings
*/

// Disable the custom Enter Key Handler. This option will be removed in version 2.5.
FCKConfig.DisableEnterKeyHandler = false ;

FCKConfig.CustomConfigurationsPath = '' ;//自定义配置文件路径和名称

FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;//编辑区的样式表文件
FCKConfig.ToolbarComboPreviewCSS = '' ;

FCKConfig.DocType = '' ;

FCKConfig.BaseHref = '' ;//相对链接的基地址

FCKConfig.FullPage = false ;//是否允许编辑整个HTML文件,还是仅允许编辑BODY间的内容


FCKConfig.Debug = false ;//是否开启调试功能,这样,当调用FCKDebug.Output()时,会在调试窗中输出内容
FCKConfig.AllowQueryStringDebug = true ;

FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;//默认皮肤,可修改为:'skins/office2003/'
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;

FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;//插件文件夹

// FCKConfig.Plugins.Add( 'autogrow' ) ;
FCKConfig.AutoGrowMax = 400 ;

// 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 ;//浏览器自动检测语言,应改为false
FCKConfig.DefaultLanguage       = 'en'//默认语言为英文,应改为'zh-cn'

FCKConfig.ContentLangDirection = 'ltr' ;//默认文字方向

FCKConfig.ProcessHTMLEntities = true ;
FCKConfig.IncludeLatinEntities = true ;
FCKConfig.IncludeGreekEntities = true ;

FCKConfig.ProcessNumericEntities = false ;

FCKConfig.AdditionalNumericEntities = ''       ;       // Single Quote: "'"

FCKConfig.FillEmptyBlocks = true ;//使用这个功能,可以将空的块级元素用空格来替代


FCKConfig.FormatSource       = true ;//在切换到代码视图时是否自动格式化代码
FCKConfig.FormatOutput       = true ;//当输出内容时是否自动格式化代码
FCKConfig.FormatIndentator = '         ' ;//当在源码格式下缩进代码使用的字符


FCKConfig.ForceStrongEm = true ;
FCKConfig.GeckoUseSPAN = false ;//是否允许SPAN标记代替B,I,U标记
FCKConfig.StartupFocus = false ;//开启时FOCUS到编辑器
FCKConfig.ForcePasteAsPlainText = false ;//强制粘贴为纯文本
FCKConfig.AutoDetectPasteFromWord = true ; // IE only.
FCKConfig.ForceSimpleAmpersand = false ;//是否不把&符号转换为XML实体
FCKConfig.TabSpaces       = 1 ;//TAB键产生的空格字符数
FCKConfig.ShowBorders = true ;//合并边框

FCKConfig.SourcePopup = false ;
FCKConfig.ToolbarStartExpanded = true ;//开启是TOOLBAR是否展开
FCKConfig.ToolbarCanCollapse = true ;//是否允许展开/折叠工具栏
FCKConfig.IgnoreEmptyParagraphValue = true ;
FCKConfig.PreserveSessionOnFileBrowser = false ;
FCKConfig.FloatingPanelsZIndex = 10000 ;

FCKConfig.TemplateReplaceAll = true ;
FCKConfig.TemplateReplaceCheckbox = true ;

FCKConfig.ToolbarLocation = 'In' ;

//ToolbarSets表示设置 default默认设置.Basic基本设置.

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'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','-','About']
] ;

FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-',/*'Link',*/'Unlink','-','Style','FontSize','TextColor','BGColor','-','Smiley','SpecialChar','Replace','Preview']

] ;

FCKConfig.EnterMode = 'p' ;        // p | div | br
FCKConfig.ShiftEnterMode = 'br' ; // p | div | br

FCKConfig.Keystrokes = [
[ CTRL + 65 /*A*/, true ],
[ CTRL + 67 /*C*/, true ],
[ CTRL + 70 /*F*/, true ],
[ CTRL + 83 /*S*/, true ],
[ CTRL + 88 /*X*/, true ],
[ CTRL + 86 /*V*/, 'Paste' ],
[ SHIFT + 45 /*INS*/, 'Paste' ],
[ CTRL + 90 /*Z*/, 'Undo' ],
[ CTRL + 89 /*Y*/, 'Redo' ],
[ CTRL + SHIFT + 90 /*Z*/, 'Redo' ],
[ CTRL + 76 /*L*/, 'Link' ],
[ CTRL + 66 /*B*/, 'Bold' ],
[ CTRL + 73 /*I*/, 'Italic' ],
[ CTRL + 85 /*U*/, 'Underline' ],
[ CTRL + SHIFT + 83 /*S*/, 'Save' ],
[ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ],
[ CTRL + 9 /*TAB*/, 'Source' ]
] ;

FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;//字符串数组,右键菜单的内容
FCKConfig.BrowserContextMenuOnCtrl = false ;

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.FontNames       = '宋体;黑体;隶书;楷体_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana';//添加需要的中文字体
FCKConfig.FontSizes       = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;//字体大小中的字号列表
FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;//设置显示在文字格式列表中的命名

FCKConfig.StylesXmlPath       = FCKConfig.EditorPath + 'fckstyles.xml' ;//设置定义CSS样式列表的XML文件的位置
FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ;

FCKConfig.SpellChecker        = 'ieSpell' ; // '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 = 15 ;

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.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 ;

// 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 | php


// Don't care about the following line. It just calculates the correct connector
// extension to use for the default File Browser (Perl uses "cgi").
var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;

FCKConfig.LinkBrowser = false;//是否允许在插入链接时浏览服务器

FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;//插入链接时浏览服务器的URL
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ;       // 70%//链接目标浏览器窗口高度
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%//链接目标浏览器窗口宽度

FCKConfig.ImageBrowser = false;//false表示关闭图片文件浏览服务器的功能
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;//浏览服务器时运行的URL
FCKConfig.ImageBrowserWindowWidth       = FCKConfig.ScreenWidth * 0.7 ; // 70% ;//图像浏览器窗口高度
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ;//图像浏览器窗口宽度

FCKConfig.FlashBrowser = false;//false表示关闭Flash浏览服务器的功能
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
FCKConfig.FlashBrowserWindowWidth       = FCKConfig.ScreenWidth * 0.7 ; //70% ;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ;

FCKConfig.LinkUpload = true ;//True表示开启文件上传的功能
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
FCKConfig.LinkUploadAllowedExtensions = "" ;        // empty for all
FCKConfig.LinkUploadDeniedExtensions = ".(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|com|dll|vbs|js|reg|cgi|htaccess|asis|sh|shtml|shtm|phtm)$" ; // empty for no one

FCKConfig.ImageUpload = true ;//True表示开启图片上传的功能
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ;       // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ;            // empty for no one

FCKConfig.FlashUpload = true ;//True表示开启Falsh上传的功能
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ;       // empty for all
FCKConfig.FlashUploadDeniedExtensions = "" ;          // empty for no one

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'] ;//字符数组 图符窗中图片文件名数组
FCKConfig.SmileyColumns = 8 ;// 图符窗列数
FCKConfig.SmileyWindowWidth       = 320 ;//图符窗口宽度
FCKConfig.SmileyWindowHeight = 240 ;//图符窗口高度

分享到:
评论
3 楼 rlj.java 2008-08-16  
gmayvess 写道
*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 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://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Configurations_Settings
*/

// Disable the custom Enter Key Handler. This option will be removed in version 2.5.
FCKConfig.DisableEnterKeyHandler = false ;

FCKConfig.CustomConfigurationsPath = '' ;//自定义配置文件路径和名称

FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;//编辑区的样式表文件
FCKConfig.ToolbarComboPreviewCSS = '' ;

FCKConfig.DocType = '' ;

FCKConfig.BaseHref = '' ;//相对链接的基地址

FCKConfig.FullPage = false ;//是否允许编辑整个HTML文件,还是仅允许编辑BODY间的内容


FCKConfig.Debug = false ;//是否开启调试功能,这样,当调用FCKDebug.Output()时,会在调试窗中输出内容
FCKConfig.AllowQueryStringDebug = true ;

FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;//默认皮肤,可修改为:'skins/office2003/'
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;

FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;//插件文件夹

// FCKConfig.Plugins.Add( 'autogrow' ) ;
FCKConfig.AutoGrowMax = 400 ;

// 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 ;//浏览器自动检测语言,应改为false
FCKConfig.DefaultLanguage       = 'en'//默认语言为英文,应改为'zh-cn'

FCKConfig.ContentLangDirection = 'ltr' ;//默认文字方向

FCKConfig.ProcessHTMLEntities = true ;
FCKConfig.IncludeLatinEntities = true ;
FCKConfig.IncludeGreekEntities = true ;

FCKConfig.ProcessNumericEntities = false ;

FCKConfig.AdditionalNumericEntities = ''       ;       // Single Quote: "'"

FCKConfig.FillEmptyBlocks = true ;//使用这个功能,可以将空的块级元素用空格来替代


FCKConfig.FormatSource       = true ;//在切换到代码视图时是否自动格式化代码
FCKConfig.FormatOutput       = true ;//当输出内容时是否自动格式化代码
FCKConfig.FormatIndentator = '         ' ;//当在源码格式下缩进代码使用的字符


FCKConfig.ForceStrongEm = true ;
FCKConfig.GeckoUseSPAN = false ;//是否允许SPAN标记代替B,I,U标记
FCKConfig.StartupFocus = false ;//开启时FOCUS到编辑器
FCKConfig.ForcePasteAsPlainText = false ;//强制粘贴为纯文本
FCKConfig.AutoDetectPasteFromWord = true ; // IE only.
FCKConfig.ForceSimpleAmpersand = false ;//是否不把&符号转换为XML实体
FCKConfig.TabSpaces       = 1 ;//TAB键产生的空格字符数
FCKConfig.ShowBorders = true ;//合并边框

FCKConfig.SourcePopup = false ;
FCKConfig.ToolbarStartExpanded = true ;//开启是TOOLBAR是否展开
FCKConfig.ToolbarCanCollapse = true ;//是否允许展开/折叠工具栏
FCKConfig.IgnoreEmptyParagraphValue = true ;
FCKConfig.PreserveSessionOnFileBrowser = false ;
FCKConfig.FloatingPanelsZIndex = 10000 ;

FCKConfig.TemplateReplaceAll = true ;
FCKConfig.TemplateReplaceCheckbox = true ;

FCKConfig.ToolbarLocation = 'In' ;

//ToolbarSets表示设置 default默认设置.Basic基本设置.

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'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','-','About']
] ;

FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-',/*'Link',*/'Unlink','-','Style','FontSize','TextColor','BGColor','-','Smiley','SpecialChar','Replace','Preview']

] ;

FCKConfig.EnterMode = 'p' ;        // p | div | br
FCKConfig.ShiftEnterMode = 'br' ; // p | div | br

FCKConfig.Keystrokes = [
[ CTRL + 65 /*A*/, true ],
[ CTRL + 67 /*C*/, true ],
[ CTRL + 70 /*F*/, true ],
[ CTRL + 83 /*S*/, true ],
[ CTRL + 88 /*X*/, true ],
[ CTRL + 86 /*V*/, 'Paste' ],
[ SHIFT + 45 /*INS*/, 'Paste' ],
[ CTRL + 90 /*Z*/, 'Undo' ],
[ CTRL + 89 /*Y*/, 'Redo' ],
[ CTRL + SHIFT + 90 /*Z*/, 'Redo' ],
[ CTRL + 76 /*L*/, 'Link' ],
[ CTRL + 66 /*B*/, 'Bold' ],
[ CTRL + 73 /*I*/, 'Italic' ],
[ CTRL + 85 /*U*/, 'Underline' ],
[ CTRL + SHIFT + 83 /*S*/, 'Save' ],
[ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ],
[ CTRL + 9 /*TAB*/, 'Source' ]
] ;

FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;//字符串数组,右键菜单的内容
FCKConfig.BrowserContextMenuOnCtrl = false ;

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.FontNames       = '宋体;黑体;隶书;楷体_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana';//添加需要的中文字体
FCKConfig.FontSizes       = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;//字体大小中的字号列表
FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;//设置显示在文字格式列表中的命名

FCKConfig.StylesXmlPath       = FCKConfig.EditorPath + 'fckstyles.xml' ;//设置定义CSS样式列表的XML文件的位置
FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ;

FCKConfig.SpellChecker        = 'ieSpell' ; // '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 = 15 ;

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.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 ;

// 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 | php


// Don't care about the following line. It just calculates the correct connector
// extension to use for the default File Browser (Perl uses "cgi").
var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;

FCKConfig.LinkBrowser = false;//是否允许在插入链接时浏览服务器

FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;//插入链接时浏览服务器的URL
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ;       // 70%//链接目标浏览器窗口高度
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%//链接目标浏览器窗口宽度

FCKConfig.ImageBrowser = false;//false表示关闭图片文件浏览服务器的功能
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;//浏览服务器时运行的URL
FCKConfig.ImageBrowserWindowWidth       = FCKConfig.ScreenWidth * 0.7 ; // 70% ;//图像浏览器窗口高度
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ;//图像浏览器窗口宽度

FCKConfig.FlashBrowser = false;//false表示关闭Flash浏览服务器的功能
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
FCKConfig.FlashBrowserWindowWidth       = FCKConfig.ScreenWidth * 0.7 ; //70% ;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ;

FCKConfig.LinkUpload = true ;//True表示开启文件上传的功能
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
FCKConfig.LinkUploadAllowedExtensions = "" ;        // empty for all
FCKConfig.LinkUploadDeniedExtensions = ".(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|com|dll|vbs|js|reg|cgi|htaccess|asis|sh|shtml|shtm|phtm)$" ; // empty for no one

FCKConfig.ImageUpload = true ;//True表示开启图片上传的功能
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ;       // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ;            // empty for no one

FCKConfig.FlashUpload = true ;//True表示开启Falsh上传的功能
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ;       // empty for all
FCKConfig.FlashUploadDeniedExtensions = "" ;          // empty for no one

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'] ;//字符数组 图符窗中图片文件名数组
FCKConfig.SmileyColumns = 8 ;// 图符窗列数
FCKConfig.SmileyWindowWidth       = 320 ;//图符窗口宽度
FCKConfig.SmileyWindowHeight = 240 ;//图符窗口高度


2 楼 liuchuang 2008-05-29  
haha
haha
haha
1 楼 liuchuang 2008-05-29  
thank you

thank you again

相关推荐

    FCK插件使用说明(pdf版)原创 绝对精品

    ### FCK插件使用说明详解 #### 一、FCK简介 FCK是一款非常强大的客户端文本编辑工具,它能够提供类似于Microsoft Word的功能,使得用户在网页上也能轻松地编辑富文本内容。本版本为2.6.3,包含了完整的DLL文件,...

    FCK使用详细说明文档示例.net (纯汉化版)

    1. **下载安装**:获取FCKeditor汉化版的压缩包,解压后通常包含`fck.zip`或`fck.tar.gz`等文件,解压缩后得到`FckEditor`文件夹。 2. **配置集成**:将`FckEditor`文件夹上传至服务器或本地开发环境,根据项目的...

    JSP+FCK编辑器使用说明及中文问题

    【JSP+FCK编辑器使用说明及中文问题】 JSP+FCK编辑器是Java Web开发中常用的一款富文本编辑工具,它允许用户在网页上创建和编辑内容,类似于Word的功能,支持图片上传、链接插入等操作。FCKeditor在早期非常流行,...

    FCK在线编辑器使用说明

    ### FCK在线编辑器使用说明详解 #### 一、FCK在线编辑器简介与功能 FCK在线编辑器是一款强大的富文本编辑工具,它能够提供类似桌面应用的编辑体验,适用于网页开发,允许用户直接在浏览器中编辑和格式化文本。FCK...

    fck资源整合包

    使用这个包时,开发者需要按照提供的说明进行集成,包括修改相关的配置文件(如struts-config.xml、hibernate.cfg.xml),并确保所有的编码设置统一为UTF-8,以确保在整个应用中中文字符的正确处理。 总的来说,这...

    Fck文本编辑器 FCKeditor fckeditor

    4. **自定义配置**: 编辑器的外观和功能可以通过配置文件进行定制,以适应不同的应用场景。 5. **表情支持**: 描述中提到,FCKeditor能够支持添加和修改QQ表情。只需更改表情目录下的文件,用户就可以将自己喜欢的...

    FCK编辑器的说明

    对于更高级的定制,如改变编辑器的宽度、高度,或者禁用某些特定的编辑功能,也可以在JavaScript配置文件中找到对应的配置项进行设置。 总之,FCKeditor提供了一个强大而灵活的富文本编辑环境,通过合理的配置和...

    FCK简装版 fck表情版

    3. **配置文件**:用于设定编辑器的行为和外观,例如默认语言、工具栏布局等。 4. **示例或演示页面**:提供一个简单的HTML页面,展示了如何在网页中引入和使用FCK简装版表情版。 5. **文档和教程**:可能包含关于...

    在线编辑器 FCK 使用说明

    在实际使用中,FCKeditor的配置文件(fckconfig.js)也非常重要。这个文件允许你调整编辑器的默认设置,如默认字体、字号、颜色方案,以及启用或禁用特定的编辑功能。通过修改这个文件,你可以让FCKeditor更好地适应...

    FCK编辑器(已配置好)

    4. **处理文件上传**:FCKeditor支持文件和图像上传,需要配置文件管理器连接器。在这个配置好的版本中,已经解决了文件删除和上传进度条不动的问题,这意味着文件上传和删除功能是可用且流畅的。 5. **自定义设置*...

    FCK编辑器 asp版 精简无错

    在提供的“配置说明.txt”文件中,通常会包含如何在ASP环境中安装和配置FCKeditor的详细步骤。这可能包括以下内容: 1. **下载与解压**:首先从官方或第三方源下载FCKeditor ASP版的压缩包,然后解压缩到服务器的...

    FCK编辑器.rar

    而FCK文件可能是编辑器的主程序或者配置文件,它包含了编辑器的核心代码和设置信息。 在实际应用中,FCK编辑器可以与PHP、ASP、ASP.NET、JSP等服务器端脚本语言无缝集成,为网站管理员提供了一个强大的内容管理系统...

    grails-fck-editor-0.3.zip_grails_grails-fck-editor

    从标签"grails grails-fck-editor"我们可以推断,这个压缩包包含了与Grails框架和FCKeditor插件相关的代码和配置文件。标签是用来分类和标识内容的关键字,这有助于开发者快速找到他们需要的信息。 压缩包内的文件...

    FCk编辑器,在线编辑器

    4. **自定义配置**:FCk编辑器允许开发者根据项目需求进行定制,可以调整工具栏按钮、设置语言、更改编辑区域大小等。 5. **API接口**:编辑器提供了丰富的API接口,允许开发者通过编程方式控制编辑器行为,实现更...

    fck editor

    用户可以通过解压文件并按照文档说明进行安装和配置,以在自己的项目中使用这款强大的编辑器。 总的来说,FCKeditor是一款强大的网页编辑工具,无论是对于初学者还是经验丰富的开发者,都能提供高效、灵活的文本...

    FCKeditor 2.6.3 asp 配置完成版 说明

    通过对配置文件的适当调整,用户可以根据自己的需求灵活地定制编辑器的功能和界面,从而提高编辑效率和用户体验。此外,该版本还特别考虑到了文件管理和上传过程中的便捷性,确保用户能够在使用过程中获得最佳的体验...

    EXT中FCK的使用

    包含的"EXT中FCK使用"文件很可能是包含了一个完整的示例,展示如何在EXT应用中集成和使用FCKeditor。这个示例应该包括了创建FCKeditor组件的代码,以及如何在EXT布局中使用该组件的示例。通过阅读和运行这个示例,...

    asp.net内容编辑控件FCK2.61

    2. 自定义配置:FCKeditor的配置文件`fckconfig.js`可以调整编辑器的默认设置,如字体大小、颜色、工具栏布局等。 3. 插件安装:FCKeditor支持第三方插件,可以在官方站点或社区找到各种功能的插件,按照插件说明...

    fck_3.6,文本编译

    通常,"Readme"文件是软件包中重要的组成部分,它包含了安装指南、使用说明、版权信息等内容。在本例中,"Readme-ZOL.htm"很可能是FCKeditor 3.6的用户指南,详细介绍如何安装、配置和使用编辑器,对于初学者来说...

Global site tag (gtag.js) - Google Analytics