LINK tag removed from HEAD with EditCompleteDocument=true from Insert Template Dialog

Last post 10-09-2006, 2:42 PM by ithandyman. 3 replies.
Sort Posts: Previous Next
  •  10-08-2006, 4:08 AM 23399

    LINK tag removed from HEAD with EditCompleteDocument=true from Insert Template Dialog

    When I attempt to insert a predefined template with EditCompleteDocument=true everything in the HEAD tag is removed. Example:
     
    <head>
    <link href="Missionary/css.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    .style1 {
     color: #FFFFFF;
     font-weight: bold;
     font-family: Arial, Helvetica, sans-serif;
    }
    -->
    </style>
    </head>
     
    When I insert the template using insert template the head tag is changed to:
     
    <head>
    </head>
     
    I need to have linked (<LINK> tag) styles and inline styles. How do I do this? Here is the different variations I have tried:
     
    <CE:Editor ID="Editor1" runat="server" EditCompleteDocument="true"></CE:Editor>
     
    -Or-
     
    <CE:Editor ID="Editor1" runat="server" EditCompleteDocument="true"  DisableAutoFormatting="true" EnableStripScriptTags="false" AutoParseClasses="true"></CE:Editor>
     
    Secondary issue is styles are not applied and images are not always visible in the preview from the insert template dialog.
  •  10-08-2006, 5:47 AM 23400 in reply to 23399

    Re: LINK tag removed from HEAD with EditCompleteDocument=true from Insert Template Dialog

    When I actually try to edit the template from the Inset Template dialog my HTML looks like:
     
    <link href="css.css" type=text/css rel=stylesheet>
    <base href=/>
    <table cellSpacing=0 cellPadding=0 width=600 align=center border=0>
        <tbody>
            <tr height=9>
                <td colSpan=2>&nbsp; </td>
            </tr>
            <tr class=background>
                <td class=back_text vAlign=top bgColor=#50030b colSpan=2 height=200>
                <p>Dear [firstname] &amp; [spousename],</p>
                </td>
            </tr>
        </tbody>
    </table>
     
    When it should look like:
     
    <html>
    <head>
    <title>Happy Anniversary</title>
    <link href="css.css" rel="stylesheet" type="text/css">
    <BASE href="http://cutesoft.net/">
    </head>
    <body bgcolor="#F4E9EB">
    <table align="center" width="600" border="0" cellspacing="0" cellpadding="0">
     <tr height="9">
     <td colspan="2">
     &nbsp;
     </td>
       </tr>
      <tr class="background">
        <td colspan="2" height="200" valign="top" bgcolor="#50030B" class="back_text"><p>Dear [firstname] &amp; [spousename],</p>
    td>
      </tr>
    </table>
    </body>
    </html>
    Then when I insert that template into the editor. I get:
     
    <html>
    <head>
    </head>
    <body>
    <p>
    <table cellSpacing=0 cellPadding=0 width=600 align=center border=0>
    <tbody>
    <tr height=9>
    <td colSpan=2>&nbsp; </td></tr>
    <tr class=background>
    <td class=back_text vAlign=top bgColor=#50030b colSpan=2 height=200>
    <p>Dear [firstname] &amp; [spousename],</p>
    td></tr></tbody></table></p>
    </body>
    </html>
     
    What am I doing wrong?
     
    My goal here is to keep the LINK tag in the HEAD tag so that I can reference an external CSS.
  •  10-09-2006, 1:08 PM 23418 in reply to 23400

    Re: LINK tag removed from HEAD with EditCompleteDocument=true from Insert Template Dialog

    ithandyman,
     
    When you insert template, all html code will be pasted into <body></body> section.
     
    If you want to load tempates that contains <head> tag, please use Editor.LoadHtml Method .
     
    Editor1.LoadHtml("document.htm");
     
    Editor.LoadHtml Method

    Loads the contents of a HTML file into the CuteEditor control.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-09-2006, 2:42 PM 23421 in reply to 23418

    Re: LINK tag removed from HEAD with EditCompleteDocument=true from Insert Template Dialog

    How do I do that with your Insert Template Dialog?
View as RSS news feed in XML