This is a migrated thread and some comments may be shown as answers.

Editor's Iframe Content Doesn't Have DOCTYPE

1 Answer 43 Views
Editor
This is a migrated thread and some comments may be shown as answers.
mattzilla
Top achievements
Rank 1
mattzilla asked on 12 Nov 2008, 01:01 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 14 Nov 2008, 05:21 PM
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.
Tags
Editor
Asked by
mattzilla
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or