Here I insert the record using ckeditor and upload the image using ckeditor. When I am about to insert an image during upload, I can upload the image using kcfinder. At that time, I get a link to insert an image like: (When I get a link as http://localhost/project/ABC/policies/add )
http://localhost/svn_project/PMS/resource/kcfinder/browse.php?opener=ckeditor&type=images&CKEditor=description&CKEditorFuncNum=1&langCode=en
But, when I want to edit this entry to load the image, it shows worng url like (When I get the link as http://localhost/project/ABC/policies/edit/2 )
http://localhost/svn_project/PMS/hr_policies/resource/kcfinder/browse.php?opener=ckeditor&type=images&CKEditor=description&CKEditorFuncNum=1&langCode=en
In config.js ckeditor,
CKEDITOR.editorConfig = function(config) { // Define changes to default configuration here. // For complete reference see: // http://docs.ckeditor.com/#!/api/CKEDITOR.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'; config.removeDialogTabs = 'link:advanced'; };
So what should I do during editing so that I can upload the image.?
source share