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?

    Thanks

    Matt
  2. Answer
    Rumen
    Admin
    Rumen avatar
    12851 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">
        <Content>
       
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
        <head>
            <title>Some Title</title>
            <style>.red {color:#900;}</style>
        <head>
        <body>
              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>
        </body>
    </html>

        </Content>
    </telerik:RadEditor>

    Best regards,
    Rumen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top