配置CKEditor 3.6.3及如何去掉CKFinder 2.2.1中的版权信息
首先,我们从官网下载最新版本的CKEditor 3.6.3和CKFinder 2.2.1;
接着,将下载的压缩包分别解压至网站项目文件的根目录下?
打开ckeditor文件夹下的config.js文件,新增如下红框中代码?
复制代码:
[javascript] view plaincopy
config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html'; //上传文件时浏览服务文件夹
config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?Type=Images'; //上传图片时浏览服务文件夹
config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?Type=Flash'; ?//上传Flash时浏览服务文件夹
config.filebrowserUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files'; //上传文件按钮(标签)
config.filebrowserImageUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images'; //上传图片按钮(标签)
config.filebrowserFlashUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'; //上传Flash按钮(标签)
[javascript] view plaincopy
config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html'; //上传文件时浏览服务文件夹
config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?Type=Images'; //上传图片时浏览服务文件夹
config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?Type=Flash'; ?//上传Flash时浏览服务文件夹
config.filebrowserUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files'; //上传文件按钮(标签)
config.filebrowserImageUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images'; //上传图片按钮(标签)
config.filebrowserFlashUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'; //上传Flash按钮(标签)
以上两步即完成CKEditor 3.6.3和CKFinder 2.2.1结合,简单吧!
接下来,我们就可以在页面中使用CKEditor 3.6.3了,以在asp.net 中使用为例,页面代码如下:
好了,运行页面,即可看到最终效果!?