Editor remove the end tag

4 posts, 0 answers
  1. Uma
    Uma avatar
    18 posts
    Member since:
    Jan 2012

    Posted 19 Mar 2012 Link to this post

    Hi Team,
    I am using Editor, i passed the data from DB to editor is like
    <table class="topbot" pgwide="1" id="nzf_734"><caption>
                  Recommended regimens for
                  <i>Helicobacter pylori</i>
                  eradication in adults
                </caption><colgroup cols="5"><col colname="col1" /><col colname="col2" /><col colname="col3" /><col colname="col4" /><col colname="col5" /></colgroup>
    <colspec colname="col1" />
    <colspec colname="col2" />
    <colspec colname="col3" />
    <colspec colname="col4" />
    <colspec colname="col5" /><thead> etc 
    But the editor display the above content as like
    <table id="nzf_734" class="topbot" pgwide="1"><caption>
                  Recommended regimens for
                  <i>Helicobacter pylori</i>
                  eradication in adults
                </caption>
    <colgroup cols="5"><col colname="col1">
    <col colname="col2"><col colname="col3">
    <col colname="col4"><col colname="col5">
    </colgroup><colspec colname="col1"><colspec colname="col2"><colspec colname="col3"><colspec colname="col4"><colspec colname="col5"><thead>                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                    Editor automatically remove the end tag, if it is not contain the value.
    it will create problem for me. How to solve this issue. Please help me. It is urgent.

    Thanks
    Uma
  2. Rumen
    Admin
    Rumen avatar
    14361 posts

    Posted 21 Mar 2012 Link to this post

    Hi,

    Can you disable the ConvertToXhtml filter and test again?

    If the problem still persists, provide the full HTML table content as well as specify the used browser under which the issue exists.

    Regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Uma
    Uma avatar
    18 posts
    Member since:
    Jan 2012

    Posted 22 Mar 2012 Link to this post

    Hi Rumen,
    Thanks for your reply.
    My actual table format code is
    <table class="topbot" pgwide="1" id="nzf_734"><caption>
                  Recommended regimens for
                  <i>Helicobacter pylori</i>
                  eradication in adults
                </caption><colgroup cols="5"><col colname="col1" /><col colname="col2" /><col colname="col3" /><col colname="col4" /><col colname="col5" /></colgroup><colspec colname="col1" /><colspec colname="col2" /><colspec colname="col3" /><colspec colname="col4" /><colspec colname="col5" /><thead><tr><td rowsep="0" colsep="0" class="bottomless">...</td><td namest="col2" nameend="col4" rowsep="0" colsep="0" align="center" colspan="3" class="bottomless">Antibacterial</td><td rowsep="0" colsep="0" class="bottomless">Price for 7-day course</td></tr><tr><td rowsep="0" colsep="0" class="bottomless">Acid suppressant</td><td rowsep="4" colsep="0" align="center" valign="bottom">Amoxicillin</td><td rowsep="4" colsep="0" align="center" valign="bottom">Clarithromycin</td><td rowsep="4" colsep="0" align="center" valign="bottom">Metronidazole</td><td rowsep="0" colsep="0" class="bottomless">...</td></tr></thead><tbody><tr><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td></tr><tr valign="middle"><td rowsep="0" colsep="0" class="bottomless">Esomeprazole</td><td rowsep="2" colsep="0" align="center">1 g twice daily</td><td rowsep="2" colsep="0" align="center">500 mg twice daily</td><td rowsep="2" colsep="0" align="center">—</td><td rowsep="2" colsep="0" align="center">£14.37</td></tr><tr valign="middle" rowsep="9"><td rowsep="1" colsep="0" align="center" valign="top">20 mg twice daily</td><td rowsep="1" colsep="0" align="center">—</td><td rowsep="1" colsep="0" align="center">250 mg twice daily</td><td rowsep="1" colsep="0" align="center">400 mg twice daily</td><td rowsep="1" colsep="0" align="center">£12.64</td></tr><tr><td rowsep="0" colsep="0" valign="middle" class="bottomless">Lansoprazole</td><td rowsep="2" colsep="0" align="center">1 g twice daily</td><td rowsep="2" colsep="0" align="center">500 mg twice daily</td><td rowsep="2" colsep="0" align="center">—</td><td rowsep="2" colsep="0" align="center">£6.05</td></tr><tr valign="middle"><td rowsep="0" colsep="0" align="center" valign="middle" class="bottomless">30 mg twice daily</td><td rowsep="9" colsep="0" align="center">1 g twice daily</td><td rowsep="9" colsep="0" align="center">—</td><td rowsep="9" colsep="0" align="center">400 mg twice daily</td><td rowsep="9" colsep="0" align="center">£3.40</td></tr><tr><td rowsep="1" colsep="0">...</td><td rowsep="3" colsep="0" align="center" valign="middle">—</td><td rowsep="3" colsep="0" align="center" valign="middle">250 mg twice daily</td><td rowsep="3" colsep="0" align="center" valign="middle">400 mg twice daily</td><td rowsep="3" colsep="0" align="center" valign="middle">£4.32</td></tr><tr><td rowsep="0" colsep="0" valign="middle" class="bottomless">Omeprazole</td><td rowsep="2" colsep="0" align="center" valign="middle">1 g twice daily</td><td rowsep="2" colsep="0" align="center" valign="middle">500 mg twice daily</td><td rowsep="2" colsep="0" align="center" valign="middle">—</td><td rowsep="2" colsep="0" align="center" valign="middle">£5.93</td></tr><tr><td rowsep="0" colsep="0" align="center" valign="middle" class="bottomless">20 mg twice daily</td><td rowsep="2" colsep="0" align="center">500 mg 3 times daily</td><td rowsep="2" colsep="0" align="center" valign="middle">—</td><td rowsep="2" colsep="0" align="center">400 mg 3 times daily</td><td rowsep="2" colsep="0" align="center">£3.31</td></tr><tr rowsep="9"><td rowsep="1" colsep="0">...</td><td rowsep="1" colsep="0" align="center" valign="middle">—</td><td rowsep="1" colsep="0" align="center" valign="middle">250 mg twice daily</td><td rowsep="1" colsep="0" align="center" valign="middle">400 mg twice daily</td><td rowsep="1" colsep="0" align="center" valign="middle">£4.20</td></tr><tr><td rowsep="0" colsep="0" valign="middle" class="bottomless">Pantoprazole</td><td rowsep="2" colsep="0" align="center">1 g twice daily</td><td rowsep="2" colsep="0" align="center">500 mg twice daily</td><td rowsep="2" colsep="0" align="center" valign="middle">—</td><td rowsep="2" colsep="0" align="center">£6.13</td></tr><tr valign="middle" rowsep="9"><td rowsep="1" colsep="0" align="center">40 mg twice daily</td><td rowsep="1" colsep="0" align="center">—</td><td rowsep="1" colsep="0" align="center">250 mg twice daily</td><td rowsep="1" colsep="0" align="center">400 mg twice daily</td><td rowsep="1" colsep="0" align="center">£4.40</td></tr><tr><td rowsep="0" colsep="0" valign="middle" class="bottomless">Rabeprazole</td><td rowsep="2" colsep="0" align="center">1 g twice daily</td><td rowsep="2" colsep="0" align="center">500 mg twice daily</td><td rowsep="2" colsep="0" align="center" valign="middle">—</td><td rowsep="2" colsep="0" align="center">£14.90</td></tr><tr valign="middle" rowsep="9"><td rowsep="1" colsep="0" align="center">20 mg twice daily</td><td rowsep="1" colsep="0" align="center">—</td><td rowsep="1" colsep="0" align="center">250 mg twice daily</td><td rowsep="1" colsep="0" align="center">400 mg twice daily</td><td rowsep="1" colsep="0" align="center">£13.17</td></tr></tbody></table>
    i disabled the xhtml filter by

    radEditor.DisableFilter(EditorFilters.ConvertToXhtml);
    but still i am getting the end tag.

    My actual need is to convert the editor content to XML document , so missing end tag shows error while converting to XML
    editor shows the table is


    <table id="nzf_734" class="topbot" pgwide="1"><caption>
                  Recommended regimens for
                  <i>Helicobacter pylori</i>
                  eradication in adults
                </caption><colgroup cols="5"><col colname="col1"><col colname="col2"><col colname="col3"><col colname="col4"><col colname="col5"></colgroup><colspec colname="col1"><colspec colname="col2"><colspec colname="col3"><colspec colname="col4"><colspec colname="col5"><thead><tr><td class="bottomless" colsep="0" rowsep="0">...</td><td class="bottomless" colSpan="3" align="center" colsep="0" rowsep="0" nameend="col4" namest="col2">Antibacterial</td><td class="bottomless" colsep="0" rowsep="0">Price for 7-day course</td></tr><tr><td class="bottomless" colsep="0" rowsep="0">Acid suppressant</td><td vAlign="bottom" align="center" colsep="0" rowsep="4">Amoxicillin</td><td vAlign="bottom" align="center" colsep="0" rowsep="4">Clarithromycin</td><td vAlign="bottom" align="center" colsep="0" rowsep="4">Metronidazole</td><td class="bottomless" colsep="0" rowsep="0">...</td></tr></thead><tbody><tr><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td></tr><tr vAlign="middle"><td class="bottomless" colsep="0" rowsep="0">Esomeprazole</td><td align="center" colsep="0" rowsep="2">1 g twice daily</td><td align="center" colsep="0" rowsep="2">500 mg twice daily</td><td align="center" colsep="0" rowsep="2">—</td><td align="center" colsep="0" rowsep="2">£14.37</td></tr><tr vAlign="middle" rowsep="9"><td vAlign="top" align="center" colsep="0" rowsep="1">20 mg twice daily</td><td align="center" colsep="0" rowsep="1">—</td><td align="center" colsep="0" rowsep="1">250 mg twice daily</td><td align="center" colsep="0" rowsep="1">400 mg twice daily</td><td align="center" colsep="0" rowsep="1">£12.64</td></tr><tr><td class="bottomless" vAlign="middle" colsep="0" rowsep="0">Lansoprazole</td><td align="center" colsep="0" rowsep="2">1 g twice daily</td><td align="center" colsep="0" rowsep="2">500 mg twice daily</td><td align="center" colsep="0" rowsep="2">—</td><td align="center" colsep="0" rowsep="2">£6.05</td></tr><tr vAlign="middle"><td class="bottomless" vAlign="middle" align="center" colsep="0" rowsep="0">30 mg twice daily</td><td align="center" colsep="0" rowsep="9">1 g twice daily</td><td align="center" colsep="0" rowsep="9">—</td><td align="center" colsep="0" rowsep="9">400 mg twice daily</td><td align="center" colsep="0" rowsep="9">£3.40</td></tr><tr><td colsep="0" rowsep="1">...</td><td vAlign="middle" align="center" colsep="0" rowsep="3">—</td><td vAlign="middle" align="center" colsep="0" rowsep="3">250 mg twice daily</td><td vAlign="middle" align="center" colsep="0" rowsep="3">400 mg twice daily</td><td vAlign="middle" align="center" colsep="0" rowsep="3">£4.32</td></tr><tr><td class="bottomless" vAlign="middle" colsep="0" rowsep="0">Omeprazole</td><td vAlign="middle" align="center" colsep="0" rowsep="2">1 g twice daily</td><td vAlign="middle" align="center" colsep="0" rowsep="2">500 mg twice daily</td><td vAlign="middle" align="center" colsep="0" rowsep="2">—</td><td vAlign="middle" align="center" colsep="0" rowsep="2">£5.93</td></tr><tr><td class="bottomless" vAlign="middle" align="center" colsep="0" rowsep="0">20 mg twice daily</td><td align="center" colsep="0" rowsep="2">500 mg 3 times daily</td><td vAlign="middle" align="center" colsep="0" rowsep="2">—</td><td align="center" colsep="0" rowsep="2">400 mg 3 times daily</td><td align="center" colsep="0" rowsep="2">£3.31</td></tr><tr rowsep="9"><td colsep="0" rowsep="1">...</td><td vAlign="middle" align="center" colsep="0" rowsep="1">—</td><td vAlign="middle" align="center" colsep="0" rowsep="1">250 mg twice daily</td><td vAlign="middle" align="center" colsep="0" rowsep="1">400 mg twice daily</td><td vAlign="middle" align="center" colsep="0" rowsep="1">£4.20</td></tr><tr><td class="bottomless" vAlign="middle" colsep="0" rowsep="0">Pantoprazole</td><td align="center" colsep="0" rowsep="2">1 g twice daily</td><td align="center" colsep="0" rowsep="2">500 mg twice daily</td><td vAlign="middle" align="center" colsep="0" rowsep="2">—</td><td align="center" colsep="0" rowsep="2">£6.13</td></tr><tr vAlign="middle" rowsep="9"><td align="center" colsep="0" rowsep="1">40 mg twice daily</td><td align="center" colsep="0" rowsep="1">—</td><td align="center" colsep="0" rowsep="1">250 mg twice daily</td><td align="center" colsep="0" rowsep="1">400 mg twice daily</td><td align="center" colsep="0" rowsep="1">£4.40</td></tr><tr><td class="bottomless" vAlign="middle" colsep="0" rowsep="0">Rabeprazole</td><td align="center" colsep="0" rowsep="2">1 g twice daily</td><td align="center" colsep="0" rowsep="2">500 mg twice daily</td><td vAlign="middle" align="center" colsep="0" rowsep="2">—</td><td align="center" colsep="0" rowsep="2">£14.90</td></tr><tr vAlign="middle" rowsep="9"><td align="center" colsep="0" rowsep="1">20 mg twice daily</td><td align="center" colsep="0" rowsep="1">—</td><td align="center" colsep="0" rowsep="1">250 mg twice daily</td><td align="center" colsep="0" rowsep="1">400 mg twice daily</td><td align="center" colsep="0" rowsep="1">£13.17</td></tr></tbody></colspec></colspec></colspec></colspec></colspec></table>
  4. Rumen
    Admin
    Rumen avatar
    14361 posts

    Posted 26 Mar 2012 Link to this post

    Hi,

    I was able to reproduce the reported behavior with the same content in an editable IFRAME under IE9, which means that this is a browser behavior.

    The solution is to render the page in IE8 mode using the following meta tag:
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

    Regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top