To enable the Flash Management function of the CuteEditor control, you must set up a managed Flash Gallery folder.
This is simply a folder in which you will be placing flashes 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, or the folder where
your Visual Studio .NET project file is located.) The folder can be named
something like /uploads/, /flashes or /UserFlashes.
Make sure that the MACHINE/ASP.NET user has Read+Write permissions on this
folder and its contents.
You can easily specify the flash gallery path using the following methods:
The security policy file (default.config, admin.config and
guest.config) can be found in the /CuteEditor/Configuration/Security folder. In
security policy file you can find the FlashGalleryPath element
which contains the flash gallery path information within CuteEditor. By
default, it contains the following value:
<security
name="FlashGalleryPath">~/uploads</security>
You can modify the FlashGalleryPath element to meet your own
requirements.
For example:
Use absolute path:
<security name="FlashGalleryPath">/uploads</security>
Use physical path:
<security name="FlashGalleryPath">c:\inetpub\wwwroot\uploads</security>
C# Example:
//use the app-based path
Editor1.Setting["security:FlashGalleryPath"]= "~/uploads";
//use the absolute path
Editor1.Setting["security:FlashGalleryPath"]= "/uploads";
//use the physical pathor
Editor1.Setting["security:FlashGalleryPath"]= @"c:\inetpub\wwwroot\uploads";
//use the app-based path
Editor1.SetSecurityFlashGalleryPath("~/uploads");
//use the absolute path
Editor1.SetSecurityFlashGalleryPath("/uploads");
//use the physical path
Editor1.SetSecurityFlashGalleryPath("c:\inetpub\wwwroot\uploads");
VB Example:
//use the app-based path
Editor1.Setting("security:FlashGalleryPath")= "~/uploads"
//use the absolute path
Editor1.Setting("security:FlashGalleryPath")= "/uploads"
//use the physical pathor
Editor1.Setting("security:FlashGalleryPath")= "c:\inetpub\wwwroot\uploads"
//use the app-based path
Editor1.SetSecurityFlashGalleryPath("~/uploads")
//use the absolute path
Editor1.SetSecurityFlashGalleryPath("/uploads")
//use the physical path
Editor1.SetSecurityFlashGalleryPath("c:\inetpub\wwwroot\uploads")