views:

58

answers:

0

Hi,

I hope someone can help me.

I'm building an ASP.NET website and in the process of integrating the CKEditor into it, to use it as my content editor. I also need to be able to upload images to display within the content and I have found some instructions to do this (http://www.mixedwaves.com/2010/02/integrating-fckeditor-filemanager-in-ckeditor/) using the filemanager from FCKEditor.

I came across a few issues along the way, but they seem to be resolved now. The error I'm getting now is:

"This connector is disabled. Please check the "editor/filemanager/connectors/aspx/config.ascx" file."

The way I understand it, the 'Enabled' boolean value in the config.ascx file just needs to be set to 'True'. I've done this so I'm at a bit of a stuck point and don't know what else to try. The code for my config.ascx file is below:

public override void SetConfig()
{
    // SECURITY: You must explicitly enable this "connector". (Set it to "true").
    bool Enabled = true;

    // URL path to user files.
    string UserFilesPath = "/Uploads/CMS/";

    // The connector tries to resolve the above UserFilesPath automatically.
    // Use the following setting it you prefer to explicitely specify the
    // absolute path. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
    // Attention: The above 'UserFilesPath' URL must point to the same directory.
    string UserFilesAbsolutePath = "";

    // Due to security issues with Apache modules, it is recommended to leave the
    // following setting enabled.
    ForceSingleExtension = true;

    // Allowed Resource Types
    AllowedTypes = new string[] { "File", "Image", "Flash", "Media" };

    // For security, HTML is allowed in the first Kb of data for files having the
    // following extensions only.
    HtmlExtensions = new string[] { "html", "htm", "xml", "xsd", "txt", "js" };

    TypeConfig[ "File" ].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", "xml", "zip" };
    TypeConfig[ "File" ].DeniedExtensions            = new string[] { };
    TypeConfig[ "File" ].FilesPath                    = "%UserFilesPath%Documents/";
    TypeConfig[ "File" ].FilesAbsolutePath            = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%Documents/" );
    TypeConfig[ "File" ].QuickUploadPath            = "%UserFilesPath%";
    TypeConfig[ "File" ].QuickUploadAbsolutePath    = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );

    TypeConfig[ "Image" ].AllowedExtensions            = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
    TypeConfig[ "Image" ].DeniedExtensions            = new string[] { };
    TypeConfig[ "Image" ].FilesPath                    = "%UserFilesPath%Images/";
    TypeConfig[ "Image" ].FilesAbsolutePath            = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%Images/" );
    TypeConfig[ "Image" ].QuickUploadPath            = "%UserFilesPath%";
    TypeConfig[ "Image" ].QuickUploadAbsolutePath    = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );

    //TypeConfig[ "Flash" ].AllowedExtensions            = new string[] { "swf", "flv" };
    //TypeConfig[ "Flash" ].DeniedExtensions            = new string[] { };
    //TypeConfig[ "Flash" ].FilesPath                    = "%UserFilesPath%flash/";
    //TypeConfig[ "Flash" ].FilesAbsolutePath            = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%flash/" );
    //TypeConfig[ "Flash" ].QuickUploadPath            = "%UserFilesPath%";
    //TypeConfig[ "Flash" ].QuickUploadAbsolutePath    = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );

    //TypeConfig[ "Media" ].AllowedExtensions            = new string[] { "aiff", "asf", "avi", "bmp", "fla", "flv", "gif", "jpeg", "jpg", "mid", "mov", "mp3", "mp4", "mpc", "mpeg", "mpg", "png", "qt", "ram", "rm", "rmi", "rmvb", "swf", "tif", "tiff", "wav", "wma", "wmv" };
    //TypeConfig[ "Media" ].DeniedExtensions            = new string[] { };
    //TypeConfig[ "Media" ].FilesPath                    = "%UserFilesPath%media/";
    //TypeConfig[ "Media" ].FilesAbsolutePath            = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%media/" );
    //TypeConfig[ "Media" ].QuickUploadPath            = "%UserFilesPath%";
    //TypeConfig[ "Media" ].QuickUploadAbsolutePath    = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );
}

Thanks very much in advance.

related questions