zoukankan      html  css  js  c++  java
  • FCK编辑器操作参数

    Html代码 复制代码
    1. 本来是计划用tinyMCE的,可是tinyMCE不支持文件上传,只好换成了FCK,可是发觉FCK有一点不是很方便,也可能是自己一直没有找到,设置的办法。   
    2. 官方js中的配置   
    3. this.InstanceName = instanceName ;   
    4. this.Width = width || ‘100%’ ;   
    5. this.Height = height || ‘200′ ;   
    6. this.ToolbarSet = toolbarSet || ‘Default’ ;   
    7. this.Value = value || ” ;   
    8. this.BasePath = FCKeditor.BasePath ;   
    9. this.CheckBrowser = true ;   
    10. this.DisplayErrors = true ;   
    11. 通过上面的设置我们可以发现,没有多语言这个选项,没有办法,只有修改源码的配置文件了。把下面显示自动检测浏览器的设置改为false,默认语言设置成自己想用的就可以了。   
    12. FCKconfig 配置文件主要内容   
    13. Save : “保存”,   
    14. NewPage : “新建”,   
    15. Preview : “预览”,   
    16. Cut : “剪切”,   
    17. Copy : “复制”,   
    18. Paste : “粘贴”,   
    19. PasteText : “粘贴为无格式文本”,   
    20. PasteWord : “从 MS Word 粘贴”,   
    21. Print : “打印”,   
    22. SelectAll : “全选”,   
    23. RemoveFormat : “清除格式”,   
    24. InsertLinkLbl : “超链接”,   
    25. InsertLink : “插入/编辑超链接”,   
    26. RemoveLink : “取消超链接”,   
    27. VisitLink : “打开超链接”,   
    28. Anchor : “插入/编辑锚点链接”,   
    29. AnchorDelete : “清除锚点链接”,   
    30. InsertImageLbl : “图象”,   
    31. InsertImage : “插入/编辑图象”,   
    32. InsertFlashLbl : “Flash”,   
    33. InsertFlash : “插入/编辑 Flash”,   
    34. InsertTableLbl : “表格”,   
    35. InsertTable : “插入/编辑表格”,   
    36. InsertLineLbl : “水平线”,   
    37. InsertLine : “插入水平线”,   
    38. InsertSpecialCharLbl: “特殊符号”,   
    39. InsertSpecialChar : “插入特殊符号”,   
    40. InsertSmileyLbl : “表情符”,   
    41. InsertSmiley : “插入表情图标”,   
    42. About : “关于 FCKeditor”,   
    43. Bold : “加粗”,   
    44. Italic : “倾斜”,   
    45. Underline : “下划线”,   
    46. StrikeThrough : “删除线”,   
    47. Subscript : “下标”,   
    48. Superscript : “上标”,   
    49. LeftJustify : “左对齐”,   
    50. CenterJustify : “居中对齐”,   
    51. RightJustify : “右对齐”,   
    52. BlockJustify : “两端对齐”,   
    53. DecreaseIndent : “减少缩进量”,   
    54. IncreaseIndent : “增加缩进量”,   
    55. Blockquote : “块引用”,   
    56. CreateDiv : “新增 Div 标籤”,   
    57. EditDiv : “更改 Div 标籤”,   
    58. DeleteDiv : “删除 Div 标籤”,   
    59. Undo : “撤消”,   
    60. Redo : “重做”,   
    61. NumberedListLbl : “编号列表”,   
    62. NumberedList : “插入/删除编号列表”,   
    63. BulletedListLbl : “项目列表”,   
    64. BulletedList : “插入/删除项目列表”,   
    65. ShowTableBorders : “显示表格边框”,   
    66. ShowDetails : “显示详细资料”,   
    67. Style : “样式”,   
    68. FontFormat : “格式”,   
    69. Font : “字体”,   
    70. FontSize : “大小”,   
    71. TextColor : “文本颜色”,   
    72. BGColor : “背景颜色”,   
    73. Source : “源代码”,   
    74. Find : “查找”,   
    75. Replace : “替换”,   
    76. SpellCheck : “拼写检查”,   
    77. UniversalKeyboard : “软键盘”,   
    78. PageBreakLbl : “分页符”,   
    79. PageBreak : “插入分页符”,   
    80.   
    81. Form : “表单”,   
    82. Checkbox : “复选框”,   
    83. RadioButton : “单选按钮”,   
    84. TextField : “单行文本”,   
    85. Textarea : “多行文本”,   
    86. HiddenField : “隐藏域”,   
    87. Button : “按钮”,   
    88. SelectionField : “列表/菜单”,   
    89. ImageButton : “图像域”,   
    90.   
    91. FitWindow : “全屏编辑”,   
    92. ShowBlocks : “显示区块”,   
    93.   
    94. FCKConfig.CustomConfigurationsPath = ” ; // 自定义配置文件路径和名称   
    95. FCKConfigFCKConfigFCKConfig.EditorAreaCSS = FCKConfig.BasePath + ‘css/fck_editorarea.css’; // 编辑区的样式表文件 FCKConfig.EditorAreaStyles = ” ; // 编辑区的样式表风格   
    96. FCKConfig.ToolbarComboPreviewCSS =”; //工具栏预览CSS   
    97. FCKConfig.DocType = ” ;//文档类型   
    98. FCKConfig.BaseHref = ”; // 相对链接的基地址   
    99. FCKConfig.FullPage = false ; //是否允许编辑整个HTML文件,还是仅允许编辑BODY间的内容 FCKConfig.StartupShowBlocks = false ;//决定是否启用”显示模块”   
    100. FCKConfig.Debug = false ;//是否开启调试功能   
    101. FCKConfigFCKConfigFCKConfig.SkinPath = FCKConfig.BasePath + ’skins/default/’ ; //皮肤路径   
    102. FCKConfig.PreloadImages=… //预装入的图片   
    103. FCKConfigFCKConfigFCKConfig.PluginsPath = FCKConfig.BasePath + ‘plugins/’ ; //插件路径   
    104.   
    105. FCKConfig.AutoDetectLanguage = true ; //是否自动检测语言   
    106. FCKConfig.DefaultLanguage = 'zh-cn' ; //默认语言   
    107.   
    108. FCKConfig.ContentLangDirection = ‘ltr’ ; //默认的文字方向,可选”ltr/rtl”,即从左到右或从右到左 FCKConfig.ProcessHTMLEntities = true ; //处理HTML实体   
    109. FCKConfig.IncludeLatinEntities = true ; //包括拉丁文   
    110. FCKConfig.IncludeGreekEntities = true ;//包括希腊文   
    111. FCKConfig.ProcessNumericEntities = false ;//处理数字实体   
    112. FCKConfig.AdditionalNumericEntities = ” ; //附加的数字实体   
    113. FCKConfig.FillEmptyBlocks = true ; //是否填充空块   
    114. FCKConfig.FormatSource = true ; //在切换到代码视图时是否自动格式化代码   
    115. FCKConfig.FormatOutput = true ; //当输出内容时是否自动格式化代码   
    116. FCKConfig.FormatIndentator = ‘ ‘ ; //当在源码格式下缩进代码使用的字符   
    117. FCKConfig.StartupFocus = false ; //开启时焦点是否到编辑器,即打开页面时光标是否停留在fckeditor上 FCKConfig.ForcePasteAsPlainText = false ; //是否强制粘贴为纯文件内容   
    118. FCKConfig.AutoDetectPasteFromWord = true ; //是否自动探测从word粘贴文件,仅支持IE   
    119. FCKConfig.ShowDropDialog = true ;//是否显示下拉菜单   
    120. FCKConfig.ForceSimpleAmpersand = false ;//是否不把&符号转换为XML实体   
    121. FCKConfig.TabSpaces = 0 ;//按下Tab键时光标跳格数,默认值为零为不跳格   
    122. FCKConfig.ShowBorders = true ;//合并边框   
    123. FCKConfig.SourcePopup = false ;//弹出   
    124. FCKConfig.ToolbarStartExpanded = true ;//启动fckeditor工具栏默认是否展开   
    125. FCKConfig.ToolbarCanCollapse = true ;//是否允许折叠或展开工具栏   
    126. FCKConfig.IgnoreEmptyParagraphValue = true ;//是否忽略空的段落值   
    127. FCKConfig.FloatingPanelsZIndex = 10000 ;//浮动面板索引   
    128. FCKConfig.HtmlEncodeOutput = false ;//是否将HTML编码输出   
    129. FCKConfig.TemplateReplaceAll = true ;//是否替换所有模板   
    130. FCKConfig.ToolbarLocation = ‘In’ ;//工具栏位置,   
  • 相关阅读:
    Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Clien
    docker pull下载镜像报错Get https://registry-1.docker.io/v2/library/centos/manifests/latest:..... timeout
    Maven 插件之 docker-maven-plugin 的使用
    Windows10下的docker安装与入门 (一)使用docker toolbox安装docker
    解决IntelliJ IDEA 创建Maven项目速度慢问题
    svn检出maven项目的步骤
    学习RabbitMQ(三):AMQP事务机制
    TX-LCN分布式事务Demo实战
    SQLite -创建数据库
    备忘录模式
  • 原文地址:https://www.cnblogs.com/xwf2160/p/1938462.html
Copyright © 2011-2022 走看看