Re: Upload button in the Insert Image screen

  •  12-05-2007, 4:21 AM

    Re: Upload button in the Insert Image screen

    Hi Adam
     
    Thanks for your reply.
     
    I like the code function more cause you can turn it on or off for a particluar page (aspx).
     
    As far as I know, there is not reference for the editor in CuteSoft_Client/CuteEditor/Dialogs/InsertImage.aspx, so how can I get a reference for this file?
     
    Also, is it possible to hide all the panel out, the one where there is the following:-
     

    <fieldset id="fieldsetUpload">

    <legend>

    [[Upload]] ([[MaxFileSizeAllowed]]

    <%= CuteEditor.Impl.FileStorage.FormatSize(secset.MaxImageSize * 1024)%>

    )</legend>

    <table border="0" cellspacing="2" cellpadding="0" width="100%" class="normal">

    <tr>

    <td style="width:8">

    </td>

    </tr>

    <tr>

    <td valign="top" style="FONT-SIZE: 8pt; vertical-align: middle; FONT-FAMILY: MS Sans Serif">

    <CE:UploadSingleFile id="InputFile" runat="server"></CE:UploadSingleFile>

    </td>

    </tr>

    <tr>

    <td style="width:5">

    </td>

    </tr>

    <tr>

    <td>

    <ul style="margin-top:0; margin-bottom:0;">

    <% if(secset.RestrictUploadedImageDimension) {%>

    <li>

    [[MaxImagedImension]]

    <%= secset.MaxImageWidth%>

    x

    <%= secset.MaxImageHeight%>

    [[pixels]].

    </li>

    <li>

    [[AutomaticImageResizeOnOff]]

    <%= secset.AutoResizeUploadedImages? "[[on]]":"[[off]]" %>.

    <%}%>

    </li>

    <li>

    <span style="white-space:nowrap">[[MaxFolderSizeAllowed]]:

    <%= CuteEditor.Impl.FileStorage.FormatSize(secset.MaxImageFolderSize * 1024)%>.

    [[Used]]: <%= CuteEditor.Impl.FileStorage.FormatSize(fs.GetDirectorySize(fs.VirtualRoot)) %>

    <span style="background-color:green;height:3px;width:40px;font-size:3px"><span style="background-color:red;height:3px;width:<%= GetUsedSpaceBarWidth() %>px;font-size:3px">

    </span></span>

    </span>

    </li>

    </ul>

    </td>

    </tr>

    </table>

    </fieldset>
     
    Thanks again for your help
     
    Johann
View Complete Thread