CKEditor使用笔记

ValidatorReuest=false;

CKFinder是CKEditor的插件
添加bin\Release下的CKFinder.dll的引用
core ckfinder.js ckfinder.html config.ascx解压到CKFinder的目录
按照文档修改CKEditor的config.js,
将上传的处理程序设定为CKFinder,注意路径

config.js的修改

CKEDITOR.editorConfig = function(config) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
    var ckfinderPath = "/js"; //改成ckfinder的绝对路径,网站的绝对路径,不是以应用为根目录
    config.filebrowserBrowserUrl = ckfinderPath + "/ckfinder/ckfinder.html";
    config.filebrowserImageBrowserUrl = ckfinderPath + "/ckfinder/ckfinder.html?Type=Images";
    config.filebrowserFlashBrowserUrl = 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";
};

  

posted @ 2012-07-18 19:59  liqipeng  阅读(159)  评论(0编辑  收藏  举报