Ckeditor使用方法_ckeditor使用和配置
Ckeditor使用方法由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“ckeditor使用和配置”。
Ckeditor使用方法:
原本想去网上下载个fckeditor 最新版的到了官网 下载变成 ckeditor,下了之后,没有上传的功能
按惯例到网上去找资料,终于找到配置方法了,现整理好的上传,方便又需求的朋友下载,顺便赚点积分,呵呵····
以下是注意事项:
1.配置ckfinder/config.asp 不用上传组件的话,修改下面的信息;
Images.Add “component”, “Auto” 改为 Images.Add “component”, “none”
auto:使用组件
none:不使用
2.配置ckfinder/config.asp 不用上传组件的话,修改下面的信息;
Images.Add “component”, “Auto” 改为 Images.Add “component”, “none”
Thumbnails.Add “enabled”, true '不使用缩略图功能(要系统安装AspJpet 或 ASPImage 2 或 ASPThumb才可使用)
3.因为安全原因,文件不可浏览.请联系系统管理员并检查CKFinder配置文件.config.asp 中 CheckAuthentication 函数返回了 false,测试情况下,您可直接把 CheckAuthentication 改为返回 true。
如果要加权限控制 自己可以修改。
4.注意是ASP版,下的朋友不要弄错的
cla=“ckeditor”>
CKEDITOR.replace('editor1',{toolbar:'Basic'});
如果页面中使用了如上代码,那么抱歉,“例外被抛出且未被接住”的问题出现了。
为什么呢?其实原因很简单,问题处在 cla=“ckeditor” 上面。其实,CKEditor 就是对文本输入框textarea进行样式包装,在textarea运用cla=“ckeditor”就等于是对textarea进行包装。而 CKEDITOR.replace也是对textarea进行包装。这两种方法重复使用就会出现上述问题。我们只要选择其中一种方法就可以了。
如果使用cla=“ckeditor”,样式就必须在ckeditor.js文件中进行配置,其灵活性有所欠缺。
所以推荐使用js的CKEDITOR.replace方法。
---------------------------
这回成了,主要是我再网站上找使用教程,文章一直强调要设置
cla=“ckeditor”,一直强调一直强调一直强调一直强调一直强调一直强调一直强调一直强调一直强调
额~~以后看帖子得注意插件版本。
特此留念,因为我以后肯定会忘记掉
最新CKEditor(FCKEditor)3.6配置方法
2011-07-31 07:05
你还在使用2.X吗?CKEditor 3.6界面效果很漂亮,功能强大,配置也简单,下面我来介绍一下配置方法:
1.首先到http://ckeditor.com/download官方网站下载最新的CKEditor,目前的最新版是3.61,下载 CKEditor for ASP.NET。下载完成后,解压压缩包,可以看到提供的例子和bin目录,还有_Samples文件夹。
2.打开你的项目,把_Samples文件夹下的ckeditor文件夹copy到你的项目里面,然后添加引用,寻找到 bin目录下的Release文件夹下的CKEditor.NET.dll,添加引用。
3.在配置文件中添加
namespace=“CKEditor.NET”/>
3.在应用到ckeditor的页面引入
<%@Register Aembly=“CKEditor.NET” Namespace=“CKEditor.NET”
TagPrefix=“CKEditor”%>
4.在需要用到ckeditor的地方加入
runat=“server”>
改变颜色:
UIColor=“#4e72b8” Language=“de” EnterMode=“BR”>
修改 UIColor的颜色代码值就可以自定义控件的颜色,效果很好看!
If you want use the CKEditor for ASP.NET Control, you must add references to the project and register the control.If you only intend to use the control on a single page, you can add a Register section to its source code:
<%@Register Aembly=“CKEditor.NET” Namespace=“CKEditor.NET”
TagPrefix=“CKEditor”%>
If you intend to use the control on multiple pages, you can add the Register section in web.config.Insert the following code into the
section:
namespace=“CKEditor.NET”/>
To insert the CKEditor for ASP.NET Control into a web page, use the following code:
runat=“server”>