fckeditor配置手册中文教程详细说明_第1页
fckeditor配置手册中文教程详细说明_第2页
fckeditor配置手册中文教程详细说明_第3页
fckeditor配置手册中文教程详细说明_第4页
fckeditor配置手册中文教程详细说明_第5页
免费预览已结束,剩余26页可下载查看

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、 件.对于其编辑器来说,这几乎是个很难解决的难题,因为在开启编辑器时需要装载多的文件.CUTEEDITOR,FCKEDITOR 还要强大 件.对于其编辑器来说,这几乎是个很难解决的难题,因为在开启编辑器时需要装载多的文件.CUTEEDITOR,FCKEDITOR 还要强大 .建立编辑器. FCKEDITOR根文件夹中并运行, 15 万 15 万 :注意:你可以将FCKEDITOR放置到任何文件夹,默认情况下,将其放入到FCKEDITOR文件夹是最为简单的方法.如果你放入的文件夹使用别的名称,BasePath另外,FCKEDITOR文件夹中所有以下划线开头的文件夹及文件,都是可选的,可以安全的从

2、你 JAVASCRIPT FCKEDITOR 到站点中,当然,其他各种语言的整合, 在页面的HEADSCRIPTJAVASCRIPT整合模块.例如 1:内联方式(建议使用):FORMscriptvaroFCKeditor=newFCKeditor(FCKeditor1); oFCKeditor.Create() ;换一个已经存在的 TEXTAREA 标记window.onload = function()varoFCKeditor=newFCKeditor(MyTextarea); oFCKeditor.ReplaceTextarea() ; 构造器FCKeditorinstanceNamew

3、idth,heighttoolbarSetvalue instanceName:编辑器的唯一名称(相当于 ID)属性width:宽度,100%value:初始化编辑器的 HTML 代码,默认值为空默认为 集合 varoFCKeditor=newFCKeditor(FCKeditor1) AutoDetectLanguage=true/false BaseHref= _fcksavedurl= 的址ContentLangDirection=ltr/rtl = Debug=true/false 是否开启调试功能,这样,FCKDebug.Output()时,会在调试窗中输出DefaultLangua

4、ge AutoDetectLanguage=true/false BaseHref= _fcksavedurl= 的址ContentLangDirection=ltr/rtl = Debug=true/false 是否开启调试功能,这样,FCKDebug.Output()时,会在调试窗中输出DefaultLanguage= EditorAreaCssEnableSourceXHTML=true/false为TRUE时,当由可视化界面切换到代码页时,把HTML处理XHTMLEnableXHTML=true/false 是否允许使用XHTML 取代 HTML FillEmptyBlocks=tru

5、e/false使用这个功能,可以将空的块级元素用空格来替代FontColors= FontNamesFontSizes= 名ext=true/false or= 当在源码格式下缩进代码使用的字符 FormatOutput=true/false 当输出内容时是否自动格式化代码 FormatSource=true/false 在切换到代码视图时是否自动格式化代码FullPage=true/false 是否允许编辑整个HTML文件,BODY ImageBrowser=true/false 是否允许浏览服务器功能 ImageBrowserURL= 浏览服务器时运行的URL ImageBrowserWi

6、ndowHeight= 图像浏览器窗口高度ImageBrowserWindowWidth= LinkBrowser=true/false PluginsPath= ShowBorders=true/falseSkinPath= SyColumns=12 SyImages=字符数组 图符窗中 yPath= 图符文件夹路径 yWindowHeight yWindowWidth ages StartupFocus=true/false FOCUS=4TABToolBarCanCollapse=true/false 是否允许展开/折叠 ToolbarSets=object 允许使用 TOOLBAR 集

7、合 ToolbarStartExpanded=true/false TOOLBAR是否展开SyImages=字符数组 图符窗中 yPath= 图符文件夹路径 yWindowHeight yWindowWidth ages StartupFocus=true/false FOCUS=4TABToolBarCanCollapse=true/false 是否允许展开/折叠 ToolbarSets=object 允许使用 TOOLBAR 集合 ToolbarStartExpanded=true/false TOOLBAR是否展开 FCKEDITOR 的样式中提供了预定义的样式,XML 文件定义的,XM

8、L文件的结构分析如下?xmlStyles /Style /Style 定此样式所适用的对象,FCKEDITOR 中的样式是上下文敏感的,也就是说,选择不同的FCKEDITOR带了两种拼写检查工具,一种是ieSpell,默认情况下使用这种,写检查,并安装iespell ,另外,也提供SpellPager查,不过,由于SPELLPAGER是由,因此,要求你的WEB 你可以将_PackagerFCKEDITOR ,出 EN.JS,然后在其基础上进行翻译.另外,RFC3066 你可以将_PackagerFCKEDITOR ,出 EN.JS,然后在其基础上进行翻译.另外,RFC3066标准,但是,需要小

9、写,例如:PortuguessLanguage en : English, pt:Portuguese需要提醒的是,文件必须保存为UTF-8 性 直 接 使 用 , 例 如 , 要 改 变 皮 肤 , 可 以 在FCKEDITOR页 面 中 指 定 更 FCKEDITORValidateRequest设为false.(%pagevalidteRequest=false var =asp /asp |aspx|cfm|lasso |perl|var =asp /asp| var =asp /asp |aspx|cfm|lasso |perl|var =asp /asp|aspx|cfm|lass

10、o这两行中改成您所需要调用的编辑器语言,如用 则改为: OpenFile 函数,把 修改为 (fileUrl):1:在web.config中设置 2:在中设置在 protectedoverridevoidOnInit(EventArgse) ifRequest.QueryStringPath=nullSes Path = /UpLoadFiles/; /设置默认值 生响应,添加右键菜单。ITSEEMSVERY1、 首先,在 : 第一,经犯过如此低级的错误,待醒悟后,找一僻静之所大嘴巴子招呼;2d , d:case ifRequest.QueryStringPath=nullSes Path =

11、 /UpLoadFiles/; /设置默认值 生响应,添加右键菜单。ITSEEMSVERY1、 首先,在 : 第一,经犯过如此低级的错误,待醒悟后,找一僻静之所大嘴巴子招呼;2d , d:case od ( ); break mand 了么?d.js 添加一个Generic : 下面添加如下oGroup.Add(newItem(this, .gif 了。Ok,如此右键菜单就被添加上去了 4、然后,还有最关键的一步:用 editor 下的 fckeditor.original.html 么功能吧?好,在mands.jsFCKeditor 一般建立好类后,还要建立两个静态函数e单的( 可用 ? ?

12、) 实 现一 个 最简 单 的功 能totype.Executefunctionwindow.alert(Itworks!);mand ,它 也定义 在一般建立好类后,还要建立两个静态函数e单的( 可用 ? ?) 实 现一 个 最简 单 的功 能totype.Executefunctionwindow.alert(Itworks!);mand ,它 也定义 在直接用 FCKEditor 定义好 的d ,比 如 scriptfunctionvaroFCKeditor=newFCKeditor(fbContent); oFCKeditor.BasePath = /F

13、CKeditor/ ; oFCKeditor.ToolbarSet = Basic ; oFCKeditor.Width = 100% ; oFCKeditor.Height = 200 ; 2FCKeditor 2FCKeditor 的 API 提供了 GetLength()方法;FCK 还有,在用户定制功能时,中间步骤可能要执行 FCK 的一些内嵌操作,那就用 divDimSetoFCKeditor=NewFCKeditor with oFCKeditor.BasePath= .Width=.Height=.Create.Height=end withFCKeditor 1:script/

14、Automaticallycalculatesthe.Create.Height=end withFCKeditor 1:script/Automaticallycalculatestheeditorbasepathbasedontheles/Thisisusefullonlyfortheseles.Arealapplicationshouldusesomethinglike =;varoFCKeditor=newFCKeditor(FCKeditor_1); oFCKeditor.BasePath = sBasePath ; oFCKeditor.Height = 100 ;oFCKedit

15、or.Value=Thisissomes oFCKeditor.Create() ; scriptoFCKeditor=newFCKeditor(FCKeditor_2)oFCKeditor.BasePath=sBasePath; oFCKeditor.Height = 100 ; oFCKeditor.Value=Thisissomes oFCKeditor.Create() ; 此部分的详细DEMO FCKeditor NetRube(FCKeditor 中文化FCKeditor FCKeditor NetRube(FCKeditor 中文化FCKeditorASP版上传程序的作者)FCK

16、 上传程序,在里面进行权限判断,并且再在fckconfig.jsFCK版本的不 fckconfig.js ASP% Dim oFCKeditorSetoFCKeditor=NewFCKeditor with oFCKeditor.BasePath= if end if .Width=.Height=.Create varoFCKeditor=newFCKeditor(fbContent)erercodeoFCKeditor.ConfigLinkBrowser=trueoFCKeditor.ConfigFlashBrowser= true ;oFCKeditor.ConfigLinkUpload

17、 = true ; oFCKeditor.ConfigFlashUpload=true oFCKeditor.Width = 100% ; oFCKeditor.Height = 200 ; oFCKeditor.Value = ; oFCKeditor.ConfigLinkUpload = true ; oFCKeditor.ConfigFlashUpload=true oFCKeditor.Width = 100% ; oFCKeditor.Height = 200 ; oFCKeditor.Value = ; DimSetoFCKeditor=NewoFCKeditor.BasePath

18、FCKeditor/ /设置编辑器的路径,我站点根 oFCKeditor.ToolbarSet = Default 在这里我以asp FCKeditor 为例进行,进入到 FCKeditor 2.0 文件夹下,先把以“_”为开夹、fckconfig.js、fckeditor.asp、fckeditor.js、fckstyles.xml、fcktemplates.xml就可以了,最外层的精简化完毕,进入到editor 文件夹内,先把“_source”文件夹删除,这里是一些源文 退出 再进入 lang 文件夹内, 这里的东西可以来个了, 只保留、 了它才能和 fckconfig.js .js 精简

19、的最后一步,退出 skin 文件夹,再进入 filemanager 请根据下面的列表进行(以fckeditor2.0版的为准 找到第 20 行 FCKConfig.DefaultLanguage 精简的最后一步,退出 skin 文件夹,再进入 filemanager 请根据下面的列表进行(以fckeditor2.0版的为准 找到第 20 行 FCKConfig.DefaultLanguage = en改为 FCKConfig.DefaultLanguage ;找到第40行 =0 ; 改为=1 ; 即在编辑器域 定义好的 Basic,也就是基本的 toolbar,flash 找到第 73 行 =

20、 77FCKConfig.FontNames = NewRoman;Verdanaic Sans MS;Courier 加上几种常 用的字 体 = ; ; ; editor editor 。打开fckeditor.asp文件,找到 sBasePath fckeditor/改为 sBasePath 打开fckeditor.js文件,找到 this.BasePath fckeditor改为 this.BasePath 改为 font-size14px;打开editorfilemanagerbrowserdefaultfrmresourcetype.html,找到第 15 “ 个“Type=YY”里

21、的YYConfigIsEnabledFalseConfigIsEnabled = True 要的ConfigUserFilesPath=/接着在“Set s = CreateObject( Scripting.Dictionary )” 后面加入s.Adduploadfile,s.Adduploadfile, 还有一个上传,就是快速上传,这个功能是在fckeditor 2.0 里才有的,以前的版本没这= False ConfigIsEnabledTrueConfigUserFilesPath = /UserFiles/改成我ConfigUserFilesPathuploadfile/&Year

22、(Date&-&Month(Date&/,因为我 文件就会被上传得乱七八糟,很不方便管理。接前重复前一个config.asp里的操作,在后面s.Adduploadfile, s.Adduploadfile, 文件就会被上传得乱七八糟,很不方便管理。接前重复前一个config.asp里的操作,在后面s.Adduploadfile, s.Adduploadfile, DimSetoFCKeditor=NewFCKeditor oFCKeditor.BasePath = /oFCKeditor.Width = 100% oFCKeditor.Create logbodyASP 版的,当然只能用在以.

23、asp 为扩展名的页面中,如果你在fckedito.asp里设置 ASPscriptvaroFCKeditor=newFCKeditor(logbody); oFCKeditor.BasePath = / ; oFCKeditor.ToolbarSet = Basic ; oFCKeditor.Width = 100% ; oFCKeditor.Height = 400 ;oFCKeditor.Create() ; scriptfunctionvaroFCKeditor=newFCKeditor(fbContent); oFCKeditor.BasePath = / ; oFCKeditor.

24、ToolbarSet = Basic ; oFCKeditor.Width = 100% ; oFCKeditor.Height = 200 ;/oFCKeditor.Create() ; 为 为 / %taglib prefix=FCK thisisdefault 3.将还可以将.js,文件(英文,简体中文,繁体中文一般应该够用了 Theoutputformatvea错的情况,将WEB- 3.将还可以将.js,文件(英文,简体中文,繁体中文一般应该够用了 Theoutputformatvea错的情况,将WEB- 整合包)文件夹中20041130FCKeditor2.0RC1 语言有 ASP。

25、2.01.6 FCKeditor2.0 shaofRC(554K3:n上nn echonn echo 1 编辑 编辑 :ko :lt :Serbiansr-latn:Serbian(Latin), sv : Swedish: :ko :lt :Serbiansr-latn:Serbiansv :然后到这里 汉化好的.js FCKeditor 从图中可以看出,当客户端向服务器发出一个文件操作请求后,Connector 就会对此请以/Link =+ /Image Browsing FCKConfig.ImageBrowser=true; =screen.height*0.7/=+hp FCKConfig.ImageBrowserWindowWidth = =+ /Image Browsing FCKConfig.ImageBrowser=true; =screen.height*0.7/=+hp FCKCon

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论