AutoResizeUploadedImages

Last post 06-26-2013, 1:01 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  06-26-2013, 7:40 AM 77603

    AutoResizeUploadedImages

     

    In Cute Editor i set this to not AutoResize Uploaded Images in dokument folder

    How do i that in  Rich Text Editor?

     

    1. Protected Overrides Sub OnLoad(e As EventArgs)   
    2.     Editor1.Setting("security:InsertDocument-AutoResizeUploadedImages") = "false"  
    3.     Editor1.Setting("security:InsertDocument-MaxImageWidth") = "6000"  
    4.     Editor1.Setting("security:InsertDocument-MaxImageHeight") = "6000"  
    5.     Editor1.Setting("security:InsertDocument-MaxImageSize") = "10240"  
    6.     MyBase.OnLoad(e)   
    7. End Sub  

  •  06-26-2013, 1:01 PM 77608 in reply to 77603

    Re: AutoResizeUploadedImages

    Hi kjell.ek,

     

    Please refer to http://richtexteditor.com/document/scr/html/auto-image-resizing.htm

     

    you can set in config file "\richtexteditor\config\default.config", the section below.

     

          <!--allow,resize,deny-->
          <security name="LargeImageMode">resize</security>
     

    Or in code

     

    Editor1.SetSecurity("*", "*", "LargeImageMode", "resize"); 
     

    Regards,

     

    Ken 

View as RSS news feed in XML