- 本来是计划用tinyMCE的,可是tinyMCE不支持文件上传,只好换成了FCK,可是发觉FCK有一点不是很方便,也可能是自己一直没有找到,设置的办法。
- 官方js中的配置
- this.InstanceName = instanceName ;
- this.Width = width || ‘100%’ ;
- this.Height = height || ‘200′ ;
- this.ToolbarSet = toolbarSet || ‘Default’ ;
- this.Value = value || ” ;
- this.BasePath = FCKeditor.BasePath ;
- this.CheckBrowser = true ;
- this.DisplayErrors = true ;
- 通过上面的设置我们可以发现,没有多语言这个选项,没有办法,只有修改源码的配置文件了。把下面显示自动检测浏览器的设置改为false,默认语言设置成自己想用的就可以了。
- FCKconfig 配置文件主要内容
- Save : “保存”,
- NewPage : “新建”,
- Preview : “预览”,
- Cut : “剪切”,
- Copy : “复制”,
- Paste : “粘贴”,
- PasteText : “粘贴为无格式文本”,
- PasteWord : “从 MS Word 粘贴”,
- Print : “打印”,
- SelectAll : “全选”,
- RemoveFormat : “清除格式”,
- InsertLinkLbl : “超链接”,
- InsertLink : “插入/编辑超链接”,
- RemoveLink : “取消超链接”,
- VisitLink : “打开超链接”,
- Anchor : “插入/编辑锚点链接”,
- AnchorDelete : “清除锚点链接”,
- InsertImageLbl : “图象”,
- InsertImage : “插入/编辑图象”,
- InsertFlashLbl : “Flash”,
- InsertFlash : “插入/编辑 Flash”,
- InsertTableLbl : “表格”,
- InsertTable : “插入/编辑表格”,
- InsertLineLbl : “水平线”,
- InsertLine : “插入水平线”,
- InsertSpecialCharLbl: “特殊符号”,
- InsertSpecialChar : “插入特殊符号”,
- InsertSmileyLbl : “表情符”,
- InsertSmiley : “插入表情图标”,
- About : “关于 FCKeditor”,
- Bold : “加粗”,
- Italic : “倾斜”,
- Underline : “下划线”,
- StrikeThrough : “删除线”,
- Subscript : “下标”,
- Superscript : “上标”,
- LeftJustify : “左对齐”,
- CenterJustify : “居中对齐”,
- RightJustify : “右对齐”,
- BlockJustify : “两端对齐”,
- DecreaseIndent : “减少缩进量”,
- IncreaseIndent : “增加缩进量”,
- Blockquote : “块引用”,
- CreateDiv : “新增 Div 标籤”,
- EditDiv : “更改 Div 标籤”,
- DeleteDiv : “删除 Div 标籤”,
- Undo : “撤消”,
- Redo : “重做”,
- NumberedListLbl : “编号列表”,
- NumberedList : “插入/删除编号列表”,
- BulletedListLbl : “项目列表”,
- BulletedList : “插入/删除项目列表”,
- ShowTableBorders : “显示表格边框”,
- ShowDetails : “显示详细资料”,
- Style : “样式”,
- FontFormat : “格式”,
- Font : “字体”,
- FontSize : “大小”,
- TextColor : “文本颜色”,
- BGColor : “背景颜色”,
- Source : “源代码”,
- Find : “查找”,
- Replace : “替换”,
- SpellCheck : “拼写检查”,
- UniversalKeyboard : “软键盘”,
- PageBreakLbl : “分页符”,
- PageBreak : “插入分页符”,
-
- Form : “表单”,
- Checkbox : “复选框”,
- RadioButton : “单选按钮”,
- TextField : “单行文本”,
- Textarea : “多行文本”,
- HiddenField : “隐藏域”,
- Button : “按钮”,
- SelectionField : “列表/菜单”,
- ImageButton : “图像域”,
-
- FitWindow : “全屏编辑”,
- ShowBlocks : “显示区块”,
-
- FCKConfig.CustomConfigurationsPath = ” ; // 自定义配置文件路径和名称
- FCKConfigFCKConfigFCKConfig.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 ;//是否开启调试功能
- FCKConfigFCKConfigFCKConfig.SkinPath = FCKConfig.BasePath + ’skins/default/’ ; //皮肤路径
- FCKConfig.PreloadImages=… //预装入的图片
- FCKConfigFCKConfigFCKConfig.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’ ;//工具栏位置,
posted @
2011-01-18 16:42
xwf2160
阅读(
909)
评论()
编辑
收藏
举报