FCKEDITOR

资料百科
FCKeditor是一个专门使用在网页上属于开放源代码容切的所见即所得文字编辑器风宣煤士反把采。它志于轻量化,不需要太复杂的安装步骤即可使用。它可和PHP、JavaScript、ASP、ASP.NET、ColdFusion、Java、以及ABAP等不同的编程语言相结合。“FCKeditor”名称中的“FCK” 待业感孙上器娘河是这个编辑器的作者的名字Frederico Caldeira Kna探坐毛bben的缩写。FCKeditor 相广质最孩参规流容于绝大部分的网页浏览器,像是 : Internet Explorer 5.5+ (Windows)、Mozilla Fir来自efox 1.0+、Mozilla 1.3+ 和 Netscape 7+。在未来的版本也将会加入对 Opera 的支援。

配置中文解释

  AutoDetectLanguage=true/false 自动检测语言

FCKEDITOR

  BaseHref="" 相对链接的基地址

  ContentLangDirection="ltr/rtl" 默认文字唱身海护日配审怎方向

  ContextMe来自nu=字符串数组,右键菜单的内容

  CustomConfigurationsPath="" 自定义配置文件路径和名称

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

  DefaultLanguage="" 缺省360百科语言

  EditorAreaCss="" 编辑区的样式表文件

  EnableSour品凯与ceXHTML=true/false 为TRUE时,当由可视化界面切换到代码页时,把HTML处理成XHTML

  EnableXHTML=true/false 是否允许使用XHTML取代HTML

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

  FontColors="触字新构" 设置显示颜色拾取器时文字颜色列表

  FontFormats="" 设置显示在文字格式列表中的命名

  FontNames="" 字体列表中的字体名

  FontSizes="" 字体大小中的字号列表

  ForcePasteAsPlainT照观ext=true/false 贵犯卫殖日革检作强制粘贴为纯文本

  ForceSimpleAmpersand=true/false 是否不把&符号转超怕征文商项去没苗换为XML实体

  FormatIndentator="" 当在源码格式下缩进代码使用的字符

  Form争河atOutput=true/false 当输出内容时是否自动格式化代码

  FormatSource=true/false 在切换到代码视图时是否自动格式化代码

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

  GeckoUseSPAN=true/false 是否允许SPAN标记代替B,I,U标记

  IeSpell越精六绿攻DownloadUrl=""下载拼写检查器的网址

  ImageBrowser=true/false 是否允许浏览服务器功

  ImageBrowserURL="" 会服均她长握开继校垂虽浏览服务器时运行的附侵收早差局细玉九URL

  ImageB经装烟rowserWindo呢积正础何讲wHeight="" 图土夜诗沿下食亚希势球证像浏览器窗口高度

  Im站顶缩针便矿色定余四技ageBrowserWindowWidth="" 图像浏览器窗口宽度

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

  LinkBrowserURL="" 插入链接时浏览服务器的到肉按URL

  LinkBr二饭视都快无衡究技报矿owserWindowHeight=""链接目标浏览器窗口高度

  LinkBrowserWindowWidth=""链接目标浏览器窗口宽度

  Plugins=object 注册插件

  PluginsPath="" 插件文件夹

  ShowBorders=true/false 合并边框

  SkinPath="" 皮肤文件夹位置

  SmileyColumns=12 图符窗列数

  SmileyImages=字符数组 图符窗中图片文件名数组

  SmileyPath="" 图符文件夹路径

  SmileyWindowHeight 图符窗口高度

  SmileyWindowWidth 图符窗口宽度

  SpellChecker="ieSpell/Spellerpages" 设置拼写检查器

  StartupFocus=true/false 开启时FOCUS到编辑器

  StylesXmlPath="" 设置定义CSS样式列表的XML文件的位置

  TabSpaces=4 TAB键产生的空格字符数

  ToolBarCanCollapse=true/false 是否允许展开/折叠工具栏

  ToolbarSets=object 允许使用TOOLBAR集合

  ToolbarStartExpanded=true/false 开启是TOOLBAR是否展开

  UseBROnCarriageReturn=true/false 当回车时是产生BR标记还是P或者DIV标记

在Asp中调用

  首先在文件顶部包含主文件

  <!--#include file="../fckeditor.asp"-->

  在适当的地方插入文本区域内容:

  <%

  Dim oFCKeditor

  Set oFCKeditor = New FCKeditor

  oFCKeditor.ToolbarSet = "A" ’使用工具条

  oFCKeditor.Width = "100%" ’宽度

  oFCKeditor.Height = "400" ’高度

  oFCKeditor.Value = ’源文件

  oFCKeditor.Create "content" ’文本框名称

  %>

  FCKEDITOR - 在JSP中调用 web.xml配置:

  FckEditor for java 2.4版本

  <servlet>

  <servlet-name>Connector</servlet-name>

  <servlet-class>

  net.fckeditor.connector.ConnectorServlet

  </servlet-class>

  <load-on-startup>1</load-on-startup>

  </servlet>

  <servlet-mapping>

  <servlet-name>Connector</servlet-name>

  <url-pattern>

  /fckeditor/editor/filemanager/connectors/*

  </url-pattern>

  </servlet-mapping>

  在JSP中使用标签调用demo:

  <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

  <%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>

  <html>

  <head>

  <title>FckEditor测试</title>

  </head>

  <body style="text-align: center;">

  FckEditor测试

  <hr>

  <form action="ShowData.jsp" method="post">

  <FCK:editor instanceName="test" height="400pt">

  <jsp:attribute name="value"> 这里是http://baike.baidu.com/">数据测试

  </jsp:attribute>

  </FCK:editor>

  <input type="submit" value="提交"/>

  <input type="reset" value="重置"/>

  </form>

  </body>

  </html>

自定义工具条

  /* Source="页面源码"

  DocProps="页面属性"

  Save="保存"

  NewPage="新建"

  Prev来自iew="预览"

 360百科 Templates="模版"

  Cut="剪切只右度常载械"

  Copy="拷贝"

  Paste="粘贴"

  PasteText="粘贴为无格式的文本"

  PasteWord="花县美团张粘贴Word格式"

  Print="打印"

  SpellCheck="拼写检查,要装插件"

措五因呢哪界  Undo="撤消"

  Redo="重做"

  Find="争封离查找"

  Replac样就六继千到e="替换"

  SelectAll="全选"

  RemoveFormat="清除格式(清除现在文本的格式)"

  Form="表单域"

  Checkbox="复选"

  Radio="单选"

  TextField="单行文本"

  Textarea="多行文本"

  Select="列表"

  Button="按钮"

  ImageButton="图像区域"

  HiddenField="隐藏域"

  Bold="加粗"

  Italic="倾斜"

  Underline="下划线"

  Stri述技刑士keThrough="删除线"

  Subscript="下标"

  Superscript="上标"

  OrderedL束交问减千探了基ist="删除/插入项目列表"

  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["非终收律西种果构史Default"] = [//Default工具条的名称

  [’Source’,’DocProps’,’-’,’Save’,’NewPage’,’Preview’,’-’,’Templates’],

  [’Cut’,’Copy’,’Paste’,’PasteText’,’PasteWord’,’-’,’Print’,’SpellCheck’],

  [’Undo’,’Redo’,’-’,’Find’,’Replace’,’-’,’SelectAll’,’RemoveFormat’],

  [’Form’,’Checkbo王便图安息状x’,’Radio’,’换绿华织TextField’,’Textarea’,’Select’,’Button’,’ImageButton’,’HiddenField’],

  ’/’,

  [’Bold’,’Italic’,’Underline’,’StrikeThrough’,’-’,’Subscript’,’Superscript’],

  [’OrderedLi型政计乙海调院千前st’,’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’]

  ] ;

最新版本

  最新版本为2.6.3

  fckeditor for java最新版本为2.4

  相对于2.3有如下改变:

  ◆The integration pack is now managed by Maven 2 with complete documentation and reports.

  ◆Automatic creation of release distribution files (assemblies).

  ◆The library runs now from Servlet 2.4/JSP 2.0 and above.

  ◆A complete structure and package review has been done. Base package moved from com.fredck.FCKeditor to net.fckeditor.

  ◆The Server Side Integration requirements are completely fulfilled.

  ◆The SimpleUploaderServlet functionality has been merged into the ConnectorServlet.

  ◆The JSP tag library has been completely restructured.

  ◆A more complete and reliable browser detection code.

  ◆New configuration handling:

  ★No configuration settings in the web.xml anymore.

  ★The configuration properties can be set in a common properties file or programmatically.

  ★'Convention over conversion', just reset the properties which don't meet your requirements.

  ◆Introduced the state-of-the-art SLF4J logging facade.

  ◆Pluggable interfaces have been introduced to extend the ConnectorServlet. This system provides session or request-based functionality.

  ◆JUnit test coverage on viable classes.

  ◆Clean and safe parameter handling and abstraction.

  ◆A lot of code performance improvements and tweaks.

标签:
声明:此文信息来源于网络,登载此文只为提供信息参考,并不用于任何商业目的。如有侵权,请及时联系我们:yongganaa@126.com

评论留言

我要留言

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

声明:此文信息来源于网络,登载此文只为提供信息参考,并不用于任何商业目的。如有侵权,请及时联系我们:yongganaa@126.com