Undesired Blank Space After <Img> tag When Retrieving Editor Content as XHTML

  •  04-07-2006, 12:15 PM

    Undesired Blank Space After <Img> tag When Retrieving Editor Content as XHTML

     I have observed that when retrieving the editor content as XHTML (userContent = Editor1.XHTML;)...
    When there is <img> tag in a <td>, then a blank space is inserted into the <td> immediately after the <img...> tag.
     
     like this... (notice the blank space just before </td> in the following line:
     
    <td><img src="../userImg/H1Monday.gif"> </td>
    That blank space is a problem because, in IE at least, it results in a visible blank area below the image (as if there were padding-bottom set for the <td>).
     
    When I change my code to retrieve editor content as text (userContent = Editor1.Text;)..., then no blank space gets inserted after the <img... > tag. This is what I get (and is what I want):
     
    <td><img src="../userImg/H1Monday.gif"></td>
     
    Please note that I found this issue has nothing to do with the .DisableAutoFormatting value. It can be true or false and the only time the blank appears is when retrieving the editor content as XHTML. 
     
    I would like to be able to retrieve the editor content as XHTML and also not have the blank space appear as described above.
     
    Finally THANKs for such a great product! CuteEditor is the best!
     
View Complete Thread