SetHTML problem with IE 8

Last post 11-09-2009, 7:56 AM by Sam Hutchinson. 3 replies.
Sort Posts: Previous Next
  •  10-26-2009, 6:47 AM 56666

    SetHTML problem with IE 8

    Hi 

    I tried contacting support but have still had no response on this issue.  
     
    This is a problem I am experiencing when using your php editor and the setHTML method.
     
    If I use the following JavaScript with Internet Explorer 8 to insert content into the editor problems occur. The method is
     
         document.getElementById('CE_editor_ID').setHTML(html);
     
    If I start with a blank editor that has the following content already loaded
     
    <html>
        <head>
        </head>
        <body>
        </body>
    </html>
     
    I then fetch the contents from the following URL: http://pmailer2.prefix.co.za/acid_test.html, and insert the content using your described JavaScript method into the Editor.
     
    If I then view the source of the of the editor I would expect it to be:
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Test</title>
    <style type="text/css">
    <!--
    body {
     font-family: Arial, Helvetica, sans-serif;
     font-size: 14px;
    }
    -->
    </style>
    </head>
    <body>
    Here some copy
    </body>
    </html>
     

    But instead its
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>Test</title>
            <style type="text/css"> <!-- body { font-family: Arial, Helvetica, sans-serif; font-size: 14px; } --> </style>
        </head>
        <body>
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="
    http://www.w3.org/1999/xhtml">
                <head>
                    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    <title>Test</title>
                    <style type="text/css">
                    <!--
                    body {
                    font-family: Arial, Helvetica, sans-serif;
                    font-size: 14px;
                    }
                    -->
                    </style>
                </head>
                </bgsound><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ></meta>
                <style type="text/css">
                <!--
                body {
                font-family: Arial, Helvetica, sans-serif;
                font-size: 14px;
                }
                --></style>Here some copy
            </body>
        </html>
     
    A strange thing is that if focus on the HTML view of the editor and do the fetch, the content is fetched correctly. None of these problems occur in Firefox.
     
    Please will you provide me with a fix for this problem
     
    Thanks
    Sam
  •  10-29-2009, 10:22 PM 56803 in reply to 56666

    Re: SetHTML problem with IE 8

    Sam
     
    We have fixed this issue and will provide an update in 24 hours.
    Please download it after 24 hours.

    Regards,
    Terry
  •  11-08-2009, 6:41 PM 56962 in reply to 56666

    Re: SetHTML problem with IE 8

    Sam Hutchinson:
    Hi 

    I tried contacting support but have still had no response on this issue.  
     
    This is a problem I am experiencing when using your php editor and the setHTML method.
     
    If I use the following JavaScript with Internet Explorer 8 to insert content into the editor problems occur. The method is
     
         document.getElementById('CE_editor_ID').setHTML(html);
     
    If I start with a blank editor that has the following content already loaded
     
    <html>
        <head>
        </head>
        <body>
        </body>
    </html>
     
    I then fetch the contents from the following URL: http://pmailer2.prefix.co.za/acid_test.html, and insert the content using your described JavaScript method into the Editor.
     
    If I then view the source of the of the editor I would expect it to be:
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Test</title>
    <style type="text/css">
    <!--
    body {
     font-family: Arial, Helvetica, sans-serif;
     font-size: 14px;
    }
    -->
    </style>
    </head>
    <body>
    Here some copy
    </body>
    </html>
     

    But instead its
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>Test</title>
            <style type="text/css"> <!-- body { font-family: Arial, Helvetica, sans-serif; font-size: 14px; } --> </style>
        </head>
        <body>
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="
    http://www.w3.org/1999/xhtml">
                <head>
                    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    <title>Test</title>
                    <style type="text/css">
                    <!--
                    body {
                    font-family: Arial, Helvetica, sans-serif;
                    font-size: 14px;
                    }
                    -->
                    </style>
                </head>
                </bgsound><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ></meta>
                <style type="text/css">
                <!--
                body {
                font-family: Arial, Helvetica, sans-serif;
                font-size: 14px;
                }
                --></style>Here some copy
            </body>
        </html>
     
    A strange thing is that if focus on the HTML view of the editor and do the fetch, the content is fetched correctly. None of these problems occur in Firefox.
     
    Please will you provide me with a fix for this problem
     
    Thanks
    Sam
     
    Sam Hutchinson,
     
    Please download the latest build then try again.
     
    Keep me posted
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-09-2009, 7:56 AM 56977 in reply to 56962

    Re: SetHTML problem with IE 8

    Hi 

    I downloaded the latest version and the error has been fixed.

    Thanks for the help

    Regards
    Sam
View as RSS news feed in XML