When I press Browse Server button in Image Properties dialogue box of ckeditor/ckfinder then it shows homepage of the website rather than actually showing the images uploaded in userfiles folder. Also I can't able to upload the images in Upload tab. I have an htaccess file in the root folder of my site whose code looks like below:
#Enable mod rewrite
Options +FollowSymlinks -MultiViews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
I integrated ckeditor with ckfinder with the help of following code:
// Integration of ckfinder with ckeditor for multiple textareas
var opt = {
filebrowserBrowseUrl: "ckfinder/ckfinder.html",
filebrowserImageBrowseUrl: "ckfinder/ckfinder.html?type=Images",
filebrowserFlashBrowseUrl: "ckfinder/ckfinder.html?type=Flash",
filebrowserUploadUrl: "ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files",
filebrowserImageUploadUrl: "ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images",
filebrowserFlashUploadUrl: "ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash",
filebrowserWindowWidth: "1000",
filebrowserWindowHeight: "700"
}
$(".editor").each(function(){
CKEDITOR.replace( $(this).attr("id"), opt );
});
When I try to upload the image in ckeditor, I get the homepage of website in a weird way. The baseurl and basedir are set correct and everything seems to be OK.
Can you please tell me what can be the problem and how can I resolve it.