在ckeditor中设置图像上传的自定义路径

时间:2016-02-01 15:55:22

标签: php ckeditor

在这里,我们定义了图片上传的路径,就像config.js文件ckeditor一样,

CKEDITOR.editorConfig = function( config ) {

        config.filebrowserBrowseUrl = '../resource/kcfinder/browse.php?opener=ckeditor&type=files';
        config.filebrowserImageBrowseUrl = '../resource/kcfinder/browse.php?opener=ckeditor&type=images';
        config.filebrowserFlashBrowseUrl = '../resource/kcfinder/browse.php?opener=ckeditor&type=flash';
        config.filebrowserUploadUrl = '../resource/kcfinder/upload.php?opener=ckeditor&type=files';
        config.filebrowserImageUploadUrl = '../resource/kcfinder/upload.php?opener=ckeditor&type=images';
        config.filebrowserFlashUploadUrl = '../resource/kcfinder/upload.php?opener=ckeditor&type=flash';

};

但是如果我们想设置自定义路径来上传图片以添加记录和编辑记录,我们该如何定义呢?

0 个答案:

没有答案