Support forums

Image folder path not changing..

Last post 06-23-2009, 1:14 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  06-23-2009, 12:43 PM 53424

    Image folder path not changing..

     To change the image folder path, we are using - Editor.Setting["security:ImageGalleryPath"]  ..

    but still as shown in below screen, path is different than what we want.

  •  06-23-2009, 1:14 PM 53428 in reply to 53424

    Re: Image folder path not changing..

    How to specify the Image gallery path?

    You can easily specify the image 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/Configuration/Security folder. In security policy file you can find the ImageGalleryPath element which contains the image gallery path information within CuteEditor. By default, it contains the following value:

    <security name ="ImageGalleryPath" >~/uploads</security><!-- Image Gallery Dialog -->
    <security name ="ImageBrowserPath" >~/uploads</security><!-- Insert Image Dialog -->

    You can modify ImageGalleryPath element and ImageBrowserPath element to meet your own requirements.

    For example:

    Use absolute path:

    <security name ="ImageGalleryPath" >/uploads</security><!-- Image Gallery Dialog -->
    <security name ="ImageBrowserPath" >/uploads</security><!-- Insert Image Dialog -->

    Use physical path:

    <security name="ImageGalleryPath" >c:\inetpub\wwwroot\uploads</security><!-- Image Gallery Dialog -->
    <security name="ImageBrowserPath" >c:\inetpub\wwwroot\uploads</security><!-- Insert Image Dialog -->

    2. Programmatically specify the Image gallery path

    C# Example:

    //use the app-based path 

    Editor1.Setting["security:ImageGalleryPath"]= "~/uploads";
    Editor1.Setting["security:ImageBrowserPath"]= "~/uploads";
    //use the absolute path 
    Editor1.Setting["security:ImageGalleryPath"]= "/uploads";
    Editor1.Setting["security:ImageBrowserPath"]= "/uploads";
    //use the physical path 
    Editor1.Setting["security:ImageGalleryPath"]= @"c:\inetpub\wwwroot\uploads";
    Editor1.Setting["security:ImageBrowserPath"]= @"c:\inetpub\wwwroot\uploads";
    //use the app-based path 

    //use the absolute path 
    //use the physical path 
    Editor1.SetSecurityImageBrowserPath("c:\inetpub\wwwroot\uploads"); Chat
    Web Messenger: wysiwyg editor:
    asp wysiwyg html editor: Image Gallery:
    Live Support:

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems