Hi,
I want to Buy and use Ckfinder as browser for CKeditor.
I integrate Ckfinder with Ckeditor successfully and it's working fine. I save files to "download" folder in application root and ckeditor and ckfinder are in "www.mysite.com/admin/" subfolder.
I changed lines to
BaseUrl = "~/download/";
Thumbnails.Url = BaseUrl + "_thumb/";
Thumbnails.Dir = "";
Now my problem is that when I Select the main image it returns
/download/Images/pic.jpg
and when I select thumbnail in ckfinder it returns
~/a/_thumb/Images/pic.jpg
I want both url be the same as /download/Images/pic.jpg - No "~" prefix
But I don't know what to do
Plz help
I want to Buy and use Ckfinder as browser for CKeditor.
I integrate Ckfinder with Ckeditor successfully and it's working fine. I save files to "download" folder in application root and ckeditor and ckfinder are in "www.mysite.com/admin/" subfolder.
I changed lines to
BaseUrl = "~/download/";
Thumbnails.Url = BaseUrl + "_thumb/";
Thumbnails.Dir = "";
Now my problem is that when I Select the main image it returns
/download/Images/pic.jpg
and when I select thumbnail in ckfinder it returns
~/a/_thumb/Images/pic.jpg
I want both url be the same as /download/Images/pic.jpg - No "~" prefix
But I don't know what to do
Plz help
Re: Ckfinder and Ckeditor Integration - Urgent help plz
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Ckfinder and Ckeditor Integration - Urgent help plz
below is my ckfinder config file: config.ascx
<%@ Control Language="C#" EnableViewState="false" AutoEventWireup="false" Inherits="CKFinder.Settings.ConfigFile" %>
<%@ Import Namespace="CKFinder.Settings" %>
<script runat="server">
public override bool CheckAuthentication()
{
return true;
}
public override void SetConfig()
{
LicenseName = "";
LicenseKey = "";
BaseUrl = "~/download/";
BaseDir = "";
Thumbnails.Url = BaseUrl + "_thumbs/";
Thumbnails.Dir = "";
Thumbnails.Enabled = true;
Thumbnails.DirectAccess = false;
Thumbnails.MaxWidth = 100;
Thumbnails.MaxHeight = 100;
Thumbnails.Quality = 80;
Images.MaxWidth = 1600;
Images.MaxHeight = 1200;
Images.Quality = 80;
CheckSizeAfterScaling = true;
ForceSingleExtension = true;
HtmlExtensions = new string[] { "html", "htm", "xml", "js" };
HideFolders = new string[] { ".svn", "CVS" };
HideFiles = new string[] { ".*" };
// Perform additional checks for image files.
SecureImageUploads = true;
RoleSessionVar = "CKFinder_UserRole";
AccessControl acl = AccessControl.Add();
acl.Role = "*";
acl.ResourceType = "*";
acl.Folder = "/";
acl.FolderView = true;
acl.FolderCreate = true;
acl.FolderRename = true;
acl.FolderDelete = true;
acl.FileView = true;
acl.FileUpload = true;
acl.FileRename = true;
acl.FileDelete = true;
DefaultResourceTypes = "";
ResourceType type;
type = ResourceType.Add( "Files" );
type.Url = BaseUrl + "Files/";
type.Dir = BaseDir == "" ? "" : BaseDir + "f/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "7z", "aiff", "asf", "avi", "bmp", "csv", "doc", "fla", "flv", "gif", "gz", "gzip", "jpeg", "jpg", "mid", "mov", "mp3", "mp4", "mpc", "mpeg", "mpg", "ods", "odt", "pdf", "png", "ppt", "pxd", "qt", "ram", "rar", "rm", "rmi", "rmvb", "rtf", "sdc", "sitd", "swf", "sxc", "sxw", "tar", "tgz", "tif", "tiff", "txt", "vsd", "wav", "wma", "wmv", "xls", "zip" };
type.DeniedExtensions = new string[] { };
type = ResourceType.Add( "Images" );
type.Url = BaseUrl + "Images/";
type.Dir = BaseDir == "" ? "" : BaseDir + "i/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
type.DeniedExtensions = new string[] { };
type = ResourceType.Add( "Flash" );
type.Url = BaseUrl + "Flash/";
type.Dir = BaseDir == "" ? "" : BaseDir + "f/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "swf", "flv" };
type.DeniedExtensions = new string[] { };
}
</script>
below is my ckeditor config file:
CKEDITOR.editorConfig = function( config )
{
config.filebrowserBrowseUrl = 'ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = 'ckfinder/ckfinder.html?Type=Images';
config.filebrowserFlashBrowseUrl = 'ckfinder/ckfinder.html?Type=Flash';
config.filebrowserUploadUrl = 'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';
config.filebrowserImageUploadUrl = 'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';
config.filebrowserFlashUploadUrl = 'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';
};
both ckeditor and ckfinder are in the same folder (~/J50/Utils/) from the web root
Waiting for your response
Jack