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

[Solved] RadEditor problems

1 Answer 121 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 17 Jun 2008, 01:27 AM
I have html file like the following loaded into RadEditor.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>New Document</title>
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
    </body>
</html>

However, when changed to html code mode, the code changed to the following.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <title>New Document</title>
    </head>
    <body>
        <!--CTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//E-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </body>
</html>

And I also notice that it has the problem when the file is saved as UTF8 file, but it preserve the html code if the file is saved as ANSI file.
And "<!--CTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//E-->" only appear when using IE, but not firefox.

Can anyone help?

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 18 Jun 2008, 02:05 PM
Hi Steve,

I tried to reproduce the problem with the latest RadControls version (2008.01.515) but did not observe the behavior you described. Please try to reproduce it in our online examples - http://www.telerik.com/demos/aspnet/prometheus/Editor/Examples/Default/DefaultCS.aspx and give me instructions or a test page I can try. Also, which file are you saving as UTF-8 / ANSI - the ASPX file containing the editor or a file you load in the editor content area?

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Steve
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or