Disable edit and delete in the Insert Image dialog box

Last post 04-25-2006, 7:08 PM by nisse. 4 replies.
Sort Posts: Previous Next
  •  01-12-2006, 2:20 AM 14632

    Disable edit and delete in the Insert Image dialog box

    How can I disable the "edit" and "delete" icon (ie the two columns that appear for each image or subfolder) in the Insert Image dialog box? I do not want certain users to have access to these functions.
     
    Also, how do I disable the upload area (so a user cannot upload NEW images) inside the Insert Image dialog box AND still allow users to navigate into a subfolder? Because if I disable the "editor.AllowUpload" proporty by setting it to false, it is not possible to navigate inside a subfolder.
     
    I am using CE 4.2 ASP
     
    Thanks
     
    nisse
  •  01-12-2006, 5:39 AM 14646 in reply to 14632

    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

  •  01-12-2006, 12:57 PM 14675 in reply to 14646

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

    Thanks for your detailed answer.
     
    In other words, that sound promising what you describe and version 5.0. I will upgrade within a short period, but I like to see version 5.x (the classic bugfix) to show up first.
     
    So I am eagerly awaiting your answer regarding navigating subfolders in version 4.2 while "editor.Allowupload = false" in the meantime.
     
    Thanks again for your good answer.
     
    regards
     
    nisse
  •  01-12-2006, 1:19 PM 14676 in reply to 14675

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

    I tried all your suggestions again. By setting editor.AllowUpload = false but "edit" and "delete" icons still shows (and are functioning!) up and I am still not able to navigate down into subfolders. But setting it to editor.AllowUpload = true makes it work when navigating into subfolders.
     
    nisse
  •  04-25-2006, 7:08 PM 18495 in reply to 14676

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

    Following up on this 5 month issue as well. I have just upgraded to 5.1 (I took a chance!), and found out that the edit and delete icons does not show anymore, which is great!
     
    But if I disable the upload, I cannot still navigate down into subfolders. If I put the allow upload back to true it works to navigate into subfolders, but then the upload also shows in the dialog box, which is not ok.
     
    Any news around this?
     
    BTW, 5.1 looks promising of what I found so far. I will put it to the test soon.
     
    Regards
     
    Nisse
View as RSS news feed in XML