我想有没有更简单的解决方案呢,于是我去官方网站查看了文档,发现他们其实给我们一个极为简便的解决方案:
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'
}
);