轻松实现 CKfinder进驻CKEditor3.0
看完YaSin写得“将CKfinder 整合进 CKEditor3.0 ”之后,我总觉得问题有点复杂,尤其是修改压缩了的js文件。
我想有没有更简单的解决方案呢,于是我去官方网站查看了文档,发现他们其实给我们一个极为简便的解决方案:
http://docs.fckeditor.net/CKFinder/Developers_Guide/ASP.NET/CKEditor_Integration
CKEDITOR.replace( '您要启用编辑功能的文本框',
{
filebrowserBrowseUrl : '/ckfinder/ckfinder.html',//启用浏览功能
filebrowserImageBrowseUrl : '/ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : '/ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
}
);
http://docs.fckeditor.net/CKFinder/Developers_Guide/ASP.NET/CKEditor_Integration
复制代码 代码如下:
CKEDITOR.replace( '您要启用编辑功能的文本框',
{
filebrowserBrowseUrl : '/ckfinder/ckfinder.html',//启用浏览功能
filebrowserImageBrowseUrl : '/ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : '/ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
}
);
很赞哦!()
大图广告(830*140)