我现在已经配置好了CKFinder,可以上传图片,和falsh,但是不知道怎么开启上传rar格式等常用压缩文件格式。CKEditor上面能不能添加一个按钮点击像上传图片的那种窗口,上传附件呢?

解决方案 »

  1.   

    ckeditor本身就有这个功能
    点“插入/编辑超链接”,再点“上传”选项卡,选文件后点“上传到服务器上”
      

  2.   

    LZ的意思是 想在 ck的工具栏中加一按钮 上传 压缩文件。
    然后通过ckfinder 上传选中的压缩文件。以前在fck上做过类似这个功能。但是现在要在 ck+ckfinder上做,还没见过呢....官方肯定有借口,但是E文差,看个api很费劲
      

  3.   

    filebrowserBrowseUrl: '../ckfinder/ckfinder.html',
    ckeditor + ckfinder 
      

  4.   

    type = ResourceType.Add( "Files" );
    type.Url = BaseUrl + "files/";
    type.Dir = BaseDir == "" ? "" : BaseDir + "files/";
    type.MaxSize = 0;
    type.AllowedExtensions = new string[] { "7z", "aiff", "asf", "avi", "bmp", "csv", "doc", "docx", "fla", "flv", "gif", "gz", "gzip", "jpeg", "jpg", "mid", "mov", "mp3", "mp4", "mpc", "mpeg", "mpg", "ods", "odt", "pdf", "png", "ppt", "pptx", "pxd", "qt", "ram", "rar", "rm", "rmi", "rmvb", "rtf", "sdc", "sitd", "swf", "sxc", "sxw", "tar", "tgz", "tif", "tiff", "txt", "vsd", "wav", "wma", "wmv", "xls", "xlsx", "zip" };
    type.DeniedExtensions = new string[] { }; type = ResourceType.Add( "Images" );
    type.Url = BaseUrl + "images/";
    type.Dir = BaseDir == "" ? "" : BaseDir + "images/";
    type.MaxSize = 0;
    type.AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
    type.DeniedExtensions = new string[] { }; type = ResourceType.Add( "Flash" );
    type.Url = BaseUrl + "flash/";
    type.Dir = BaseDir == "" ? "" : BaseDir + "flash/";
    type.MaxSize = 0;
    type.AllowedExtensions = new string[] { "swf", "flv" };
    type.DeniedExtensions = new string[] { };他有这个上车压缩文件的配置,但是不知道怎么使用。 files那里即是上车压缩文件等的配置。