在这里,我们定义了图片上传的路径,就像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';
};
但是如果我们想设置自定义路径来上传图片以添加记录和编辑记录,我们该如何定义呢?