Editor's Iframe Content Doesn't Have DOCTYPE

2 posts, 1 answers
  1. mattzilla
    mattzilla avatar
    29 posts
    Member since:
    Sep 2006

    Posted 11 Nov 2008 Link to this post

    The iframe's html file created by the editor doesn't have a valid DOCTYPE, so it runs the editable content displays in quirks mode, meaning styles can behave differently compared to the real pages.

    Is there an easy fix for this?


  2. Answer
    Rumen avatar
    14324 posts

    Posted 14 Nov 2008 Link to this post

    Hi Matt,

    Have you tried by any chance to edit full HTML page content in RadEditor having valid DOCTYPE, e.g.

    <telerik:RadEditor ID="RadEditor1" runat="server">
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <title>Some Title</title>
            <style>.red {color:#900;}</style>
              Sample Content <a href="http://www.telerik.com">www.telerik.com</a> test <a href="http://www.yahoo.com">www.yahoo.com</a> test <a href="http://www.test.com/some.pdf">some.pdf</a>
            <p class=red>Sample test</p>
            <p>Some more test</p>


    Best regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top