Re: How can I set control to make insert image no width and height tag info?

  •  08-30-2012, 7:43 AM

    Re: How can I set control to make insert image no width and height tag info?

    Hi oksummer,

     

    Please try the way below

     

    1. Open file "\CuteSoft_Client\CuteEditor\Dialogs\InsertImage.aspx "

     

    2. Find section below

     

    <input class="formbutton" type="button" value="[[Insert]]" onclick="do_insert()"
    id="Button1" />


    3. Change it to

     

    <input class="formbutton" type="button" value="[[Insert]]" onclick="customInsert()"
    id="Button1" />
     

    4. Add the code below to the bottom of the page

     

    <script>
    function customInsert()
    {
        var inp_width=document.getElementById("inp_width");
        var inp_height=document.getElementById("inp_height");
        inp_width.value="";
        inp_height.value="";
        do_insert();
    }
    </script>

     

    Regards,

     

    Ken 

View Complete Thread