|
RadEditor has built-in support for uploading/deleting/inserting
images, Flash, and Windows Media files. Moreover, the component
can facilitate fine grained access and permissions in multi-user
applications.
In this example we have configured the RadEditor in such a
way that enables you to browse and insert images, Flash, and Windows
Media from the "Marketing" and "PublicRelations" folders and all their
subfolders. However, you can upload and delete files only in the
Marketing folder and its subfolders. This configuration is achieved
using the following properties (for images):
ImagesPaths = "~/Img/UserDir/Marketing,~/Img/UserDir/PublicRelations"
UploadImagesPaths =
"~/Img/UserDir"
DeleteImagesPaths = "~/Img/UserDir"
MaxImageSize ="512000"
The configuration for Flash and Windows Medial is identical to
the one for images (see the ASCX tab for the exact configuration).
You can also configure the editor through the API functions from the codebehind:
//This will set the three paths for all file types
string[] dirs = new string[] {"~/Img/UserDir"};
editor1.SetPaths ( dirs,
Telerik.WebControls.EditorFileTypes.All,
Telerik.WebControls.EditorFileOptions.All
);
|