Hi gurpreet,
Please try the example below
- <%@ Page Language="C#" AutoEventWireup="True" %>
-
- <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- </head>
- <body>
- <form id="Form1" runat="server">
- <CE:Editor ID="editor1" runat="server" MaintainAspectRatioWhenDraggingImage="false">
- </CE:Editor>
- </form>
- </body>
- </html>
-
- <script>
- function cleanImg()
- {
- var editor1=document.getElementById("<%= editor1.ClientID %>");
- var editdoc = editor1.GetDocument();
- for(var i=0;i<editdoc.images.length;i++)
- {
- editdoc.images[i].removeAttribute("width");
- editdoc.images[i].removeAttribute("height");
- }
- }
- setInterval(cleanImg,1000);
-
- </script>
-
-