Re: Disable edit and delete in the Insert Image dialog box

  •  01-12-2006, 5:39 AM

    Re: Disable edit and delete in the Insert Image dialog box

    nisse,
     
    In the version 4.2, you need to set the editor.AllowUpload proporty to false to disable the "edit" and "delete" icon.
     
    Cute Editor version 5.0 allows you to assign a pre-defined set of permissions by group or individual. This prevents a normal user to access the administration functionality.


    The details of permissions are specified by an XML security policy file. Each level maps to a specific file. The default mappings:

    • admin—maps to admin.config
    • default—maps to default.config
    • guest—maps to guest.config

    You can customize and extend each policy file by editing the XML security policy file. You can also create your own policy files that define arbitrary permission sets.

    Comparison of the sample security policy file

     

    Permissions/Resource Setting Admin Default Guest
    AllowUpload
    AllowDelete
    AllowCopy
    AllowMove
    MaxImageWidth 6400 640 640
    MaxImageHeight 4800 480 480
    MaxImageSize 10000 100 100
    MaxMediaSize 10000 100 100
    MaxFlashSize 10000 100 100
    MaxDocumentSize 10000 100 100
    ImageGalleryPath ~/uploads ~/uploads/member ~/uploads/guest
    MediaGalleryPath ~/uploads ~/uploads/member ~/uploads/guest
    FlashGalleryPath ~/uploads ~/uploads/member ~/uploads/guest
    FilesGallaryPath ~/uploads ~/uploads/member ~/uploads/guest
    ImageFilters .jpg
    .jpeg
    .gif
    .png
    .jpg
    .jpeg
    .gif
    .jpg
    .jpeg
    .gif
    MediaFilters .avi
    .mpg
    .mpeg
    .mp3
    .avi
    .mpg
    .mpeg
    .avi
    .mpg
    .mpeg
    DocumentFilters .txt, .doc
    .pdf, .zip
    .rar, .avi
    .mpg, .mpeg
    .mp3, .jpg
    .jpeg,.gif
    .png
    .pdf, .doc
    .txt, .doc
    .pdf, .zip
     
     
    >>Because if I disable the "editor.AllowUpload" proporty by setting it to false, it is not possible to navigate inside a subfolder.
     
    It's strange. The "editor.AllowUpload" proporty should has nothing to do with navigating the subfolder.
     
    Let me check...
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread