CE adding <html><head> and <body> tags

Last post 07-05-2007, 8:37 PM by fredd. 4 replies.
Sort Posts: Previous Next
  •  07-05-2007, 2:07 PM 31304

    CE adding <html><head> and <body> tags

    I'm loading content from another source into CE like this:

    <font face=
    "Arial" size="2"> <font face="Times New Roman" size="3"> </font> <table width="100%"> <tbody> <tr> <td style="font-size: 8pt; font-family: Verdana;" align="left" valign="top" width="17%"><b>Fred</b></td> <td style="font-size: 8pt; font-family: Verdana;" align="left" valign="top" width="83%"> <dt>It shows sender as gary.terrys@gmail.com </dt><dt><font size="1"><i>
    <font color=
    "#808080">Sun, 17 Jun 2007 23:31:19 UTC</font></i><font color="#808080"></font></font></dt></td></tr></tbody></table> <table width="100%"> <tbody> <tr> <td style="font-size: 8pt; font-family: Verdana;" align="left" valign="top" width="17%"><b>gary</b></td> <td style="font-size: 8pt; font-family: Verdana;" align="left" valign="top" width="83%"> <dt>that is sender but what about where its going? </dt><dt><font size="1"><i><font color="#808080">Sun, 17 Jun 2007 23:30:37 UTC</font></i><font color="#808080"></font></font></dt></td></tr></tbody></table> </font>
     
    CE converts it to a structured format, but also adds <html><head> and <body> tags. How do I tell CE not to add those tags? I can accept the reformatting, but not the addition of those tags:
     
            <font face="Arial" size="2"> <font face="Times New Roman" size="3"> </font>
            <table width="100%"> 
                    <tr>
                        <td style="font-size: 8pt; font-family: Verdana" valign="top" align="left" width="17%"><strong>Fred</strong></td>
                        <td style="font-size: 8pt; font-family: Verdana" valign="top" align="left" width="83%">
                        <dl>
                        <dt>It shows sender as garyt@gmail.com
                        <dt><font size="1"><em><font color="#808080">Sun, 17 Jun 2007 23:31:19 UTC</font></em><font color="#808080"></font></font></dt>
                        </dl>
                        </td>
                    </tr> 
            </table>
            <table width="100%"> 
                    <tr>
                        <td style="font-size: 8pt; font-family: Verdana" valign="top" align="left" width="17%"><strong>Gary</strong></td>
                        <td style="font-size: 8pt; font-family: Verdana" valign="top" align="left" width="83%">
                        <dt>that is sender but what about where its going?
                        <dt><font size="1"><em><font color="#808080">Sun, 17 Jun 2007 23:30:37 UTC</font></em><font color="#808080"></font></font></dt></td>
                    </tr> 
            </table>
            <table width="100%"> 
                    <tr>
                        <td style="font-size: 8pt; font-family: Verdana" valign="top" align="left" width="17%"><strong>Fred</strong></td>
                        <td style="font-size: 8pt; font-family: Verdana" valign="top" align="left" width="83%">
                        <dl>
                        <dt>What you are concerned about is the BCC - and the record shows the BCC as
                          @gmail.com, so it should be there.
                        <dt><font size="1"><em><font color="#808080">Sun, 17 Jun 2007 23:33:14 UTC</font></em><font color="#808080"></font></font></dt>
                        </dl>
                        </td>
                    </tr> 
            </table>
            </font>
     
     
     
     
  •  07-05-2007, 3:35 PM 31308 in reply to 31304

    Re: CE adding <html><head> and <body> tags

    fredd,
     
    I didn't find the HTML and head tag in the above code.
     
    Did you set the following property to true?

     

    Editor.EditCompleteDocument Property

    Specify whether a complete HTML document is being edited.

    If false, the editor will only process content inside the page body i.e. all content inside of the <body>...</body> tags of a page. If true, the editor will process content outside the page body and preserve header tags (e.g. <head>...</head>, <title>...</title>, etc.).

    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

  •  07-05-2007, 3:47 PM 31310 in reply to 31308

    Re: CE adding <html><head> and <body> tags

    Sorry, my bad. I stipped off the <html><head> and <body> tags of the second document.
     
    EditCompleteDocument is set to false.
     
    I must be adding the tags myself somewhere, but I can't seem to locate it!! :(
     
    Let me look some more...
  •  07-05-2007, 4:05 PM 31311 in reply to 31310

    Re: CE adding <html><head> and <body> tags

    Adam,
     
    It must be getting initiated inside one of the config files (they have been modified, but we can't see any changes that would add the tags).
     
    Where does CE look for its initial Text content? Is it in a CSS file or something like that, or a .js file?
     
     
  •  07-05-2007, 8:37 PM 31316 in reply to 31311

    Re: CE adding <html><head> and <body> tags

    Found the problem - it was us. We were setting EditCompleteDocument in code, in a very obscure place...
     
    Thanks for the guidance
View as RSS news feed in XML