日期:2014-05-17  浏览次数:20442 次

求大拿指教Html编辑器ckeditor,ckfinder路径设置问题?本地能上传发布到iis里面有问题?报无法找到资源错误?

CKEDITOR.editorConfig = function( config )
{
 var ckfinderPath = "/Excellent/Excellent/CourseEdit/js"; //ckfinder路径(这个路径怎么设?)
  config.filebrowserBrowseUrl = ckfinderPath + '/ckfinder/ckfinder.html';
  config.filebrowserImageBrowseUrl = ckfinderPath + '/ckfinder/ckfinder.html?type=Images';
  config.filebrowserFlashBrowseUrl = ckfinderPath + '/ckfinder/ckfinder.html?type=Flash';
  config.filebrowserUploadUrl = ckfinderPath + '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';
  config.filebrowserImageUploadUrl = ckfinderPath + '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images'; 
  config.filebrowserFlashUploadUrl = ckfinderPath + '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'; 
};
          public override void SetConfig()
{
// Paste your license name and key here. If left blank, CKFinder will
// be fully functional, in Demo Mode.
LicenseName = "";
LicenseKey = "";

// The base URL used to reach files in CKFinder through the browser.

        BaseUrl = "/Excellent/Excellent/CourseEdit/ckfinder/userfiles/";
         
        

// The phisical directory in the server where the file will end up. If
// blank, CKFinder attempts to resolve BaseUrl.

        BaseDir = "/Excellent/Excellent/CourseEdit/ckfinder/userfiles/";
// Thumbnail settings.
// "Url" is used to reach the thumbnails with the browser, while "Dir"
// points to the physical location of the thumbnail files in the server.
Thumbnails.Url = BaseUrl + "_thumbs/";
Thumbnails.Dir = BaseDir + "_thumbs/";上面两个地址要怎么设置?
CKFinder.DEFAULT_BASEPATH = '/Excellent/Excellent/CourseEdit/ckfinder/' ;这个要怎么设置?这几个路径的关系是怎么样子的?代表什么意思?谢谢....

------解决方案--------------------
<%=ResolveUrl("~/Excellent/Excellent/CourseEdit/js“)%>改成这样试下
------解决方案--------------------
先读下发布后iis里面的路径看下。
------解决方案--------------------
楼主问题解决没 。我也碰到同样的问题
------解决方案--------------------
用xheditor