can i dont give option to clients to resize image??

Last post 09-15-2010, 5:22 AM by vagelis28. 4 replies.
Sort Posts: Previous Next
  •  09-12-2010, 2:37 AM 63939

    can i dont give option to clients to resize image??

    hi,
     
    i wonder if i can keep the size of an image inserted by the insertimage constant and not give to clients the option to change it
  •  09-12-2010, 8:40 PM 63942 in reply to 63939

    Re: can i dont give option to clients to resize image??

    Hi vagelis28,
     
    Please try the way below to hide the size section.
     
    1. Open file "CuteSoft_Client\CuteEditor\Dialogs\InsertImage.aspx"
     
    2. Find section below, it is the size section
     
    1. <table border="0" cellpadding="0" cellspacing="0" class="normal">  
    2.         <tr>  
    3.             <td style="width: 100; white-space: nowrap">  
    4.                 [[Width]]:</td>  
    5.             <td>  
    6.                 <input type="text" size="2" id="inp_width" onkeyup="checkConstrains('width');" onkeypress="return CancelEventIfNotDigit()"  
    7.                     style="width: 80px" />  
    8.             </td>  
    9.             <td rowspan="2" align="right" valign="middle">  
    10.                 <img src="../Load.ashx?type=image&file=locked.gif" id="imgLock" width="25" height="32"  
    11.                     title="[[ConstrainProportions]]" />  
    12.             </td>  
    13.         </tr>  
    14.         <tr>  
    15.             <td>  
    16.                 [[Height]]:</td>  
    17.             <td>  
    18.                 <input type="text" size="2" id="inp_height" onkeyup="checkConstrains('height');"  
    19.                     onkeypress="return CancelEventIfNotDigit()" style="width: 80px" />  
    20.             </td>  
    21.         </tr>  
    22.         <tr>  
    23.             <td colspan="2">  
    24.                 <input type="checkbox" id="constrain_prop" checked="checked" onclick="BLOCKED SCRIPTtoggleConstrains();" />  
    25.                 [[ConstrainProportions]]   
    26.             </td>  
    27.         </tr>  
    28.     </table>  

    3. Change it to
     
    1. <table border="0" cellpadding="0" cellspacing="0" class="normal" style="visibility:hidden">  
    2.         <tr>  
    3.             <td style="width: 100; white-space: nowrap">  
    4.                 [[Width]]:</td>  
    5.             <td>  
    6.                 <input type="text" size="2" id="inp_width" onkeyup="checkConstrains('width');" onkeypress="return CancelEventIfNotDigit()"  
    7.                     style="width: 80px" />  
    8.             </td>  
    9.             <td rowspan="2" align="right" valign="middle">  
    10.                 <img src="../Load.ashx?type=image&file=locked.gif" id="imgLock" width="25" height="32"  
    11.                     title="[[ConstrainProportions]]" />  
    12.             </td>  
    13.         </tr>  
    14.         <tr>  
    15.             <td>  
    16.                 [[Height]]:</td>  
    17.             <td>  
    18.                 <input type="text" size="2" id="inp_height" onkeyup="checkConstrains('height');"  
    19.                     onkeypress="return CancelEventIfNotDigit()" style="width: 80px" />  
    20.             </td>  
    21.         </tr>  
    22.         <tr>  
    23.             <td colspan="2">  
    24.                 <input type="checkbox" id="constrain_prop" checked="checked" onclick="BLOCKED SCRIPTtoggleConstrains();" />  
    25.                 [[ConstrainProportions]]   
    26.             </td>  
    27.         </tr>  
    28.     </table>  
     
    Regards,
     
    ken
  •  09-14-2010, 4:30 PM 64011 in reply to 63942

    Re: can i dont give option to clients to resize image??

    and where is the differnce between them??
     
    another question is if i could do that without change the cutesoft code?
    because i want in different pages of my site have different picture sizes and with this method all the pages will use one size that will be specified once
     
    and something else with the code that you gave me will the picture have a specific width and height or only width??
  •  09-14-2010, 8:46 PM 64015 in reply to 64011

    Re: can i dont give option to clients to resize image??

    Hi vagelis28,
     
    Question 1.
     
    In the code above, I add section style="visibility:hidden" into the table to hide the size section of the Insert Image dialog.
     
     
    Question 2.
     
    The picture  you insert will remain the original size. But you still can change the size in editor after the insert.
     
    If this does not meet your requirements, please explain your requirement on detail. I will create the example for you.
     
    Regards,
     
    Ken
  •  09-15-2010, 5:22 AM 64024 in reply to 64015

    Re: can i dont give option to clients to resize image??

    ok thank you very much for replying..
    i understand now..! 
View as RSS news feed in XML