Cute Editor for ASP

Setting up the Document gallery path

Setting up the Document gallery path

To enable the document management function of the Cute Editor control, you must set up a managed document gallery folder.

This is simply a folder in which you will be placing document for your users to use in their content. Create a folder in your application’s root folder. (For most applications, this is your web server’s root folder.) The folder can be named something like /uploads/,  /Document or /UserDocument. 

Make sure that the Internet Guest Account has Read+Write permissions on this folder and its contents.

 


 

How to specify the Document gallery path?

You can easily specify the document gallery path using the following methods:

1. Edit security policy file.


The security policy file (default.config, admin.config and guest.config) can be found in the CuteEditor_Files/Configuration/Security folder. In security policy file you can find the FilesGalleryPath element which contains the document gallery path information within Cute Editor.  By default, it contains the following value:


<
security name="FilesGalleryPath">~/uploads</security>
  

You can modify the FilesGalleryPath element to meet your own requirements.


 

For example:

<security name="FilesGalleryPath">/Myuploads</security>

2. Programmatically specify the Document gallery path


Example:

//Programmatically specify the Document gallery path 

editor.FilesGalleryPath = "/Uploads"