Re: Wrong <SCRIPT/> tag formatting

  •  11-21-2011, 7:05 AM

    Re: Wrong <SCRIPT/> tag formatting

    Addition.
    Here is the code of my ASPX page:
     

    <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
        <head>
          <title>Novaview HTML editor</title>
          <link rel="stylesheet" href="style.css" type="text/css" />
          <script language="JavaScript" type="text/javascript" >

         function getHtml()
         {   // get the cute editor instance
            var editor1 = document.getElementById('<%=Editor1.ClientID%>');          
            // Get the editor HTML
            return(editor1.getHTML());
         }  
       
         function setHtml(html)
         {   // get the cute editor instance
            var editor1 = document.getElementById('<%=Editor1.ClientID%>');

            if(!editor1 || !editor1.IsReady)
            { window.setTimeout("setHtml('"+html+"')",100);
              return;
            }
        
          // Set the editor
          editor1.setHTML(html);
        }

           </script>   
        </head>
        <body>
         <form runat="server">
          <span style="position:absolute;width:100%;height:100%">
             <CE:Editor id="Editor1" FullPage="True" Focus="True" AllowPasteHtml="False" EditCompleteDocument="True" EnableStripScriptTags="False" EnableStripIframeTags="False" EnableStripLinkTagsCodeInjection="False" EnableStripStyleTagsCodeInjection="False"  ConvertHTMLTagstoLowercase="False" EditorWysiwygModeCss="style.css" runat="server"></CE:Editor>
          </span>
         </form>
        </body>
    </html>

    <script runat="server">
             void Page_Load(object sender, System.EventArgs e)
             {  Editor1.AutoConfigure  = AutoConfigure.Full;
                 Editor1.ResizeMode = EditorResizeMode.None;        
                 Editor1.RemoveTBODYTag = true;
                 Editor1.EditorOnPaste = PasteBehavior.PasteAsHTML;
             } 
    </script>

View Complete Thread