JavaScript is executed in “NORAML”, “PREVIEW” tab and considered the result as part of the content.

Last post 08-31-2011, 3:58 PM by bpeery. 2 replies.
Sort Posts: Previous Next
  •  08-23-2011, 1:44 PM 69776

    JavaScript is executed in “NORAML”, “PREVIEW” tab and considered the result as part of the content.

    CuteEditor Support,

     

    We are using the latest CuteEditor.asp.net 6.6 (downloaded from the website on 8/23/2011)

     

    issue: JavaScript is executed in “NORAML”, “PREVIEW” tab and considered the result as part of the content.

     

    Repro steps:

    1)     Create a webstie and put the following content in the default.aspx page. (This is provided by Kenneth in CuteEditor Support team)

    <%@PageLanguage="C#"AutoEventWireup="true"%>

     

    <%@RegisterTagPrefix="CE"Namespace="CuteEditor"Assembly="CuteEditor"%>

    <!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <htmlxmlns="http://www.w3.org/1999/xhtml">

    <headid="Head1"runat="server">

       <title></title>

    </head>

    <body>

       <formid="form1"runat="server">

    <CE:EditorID="editor1"runat="server"EditCompleteDocument="true"EnableStripScriptTags="false">

           </CE:Editor>

       </form>

    </body>

    </html>

    2) On the Editor, Click “HTML” tab, copy the following content in there

    <HTML> <HEAD> <TITLE>Dynamic Schedule</TITLE>
    </HEAD>
    <H1>Schedule</H1>
    <SCRIPT language=JavaScript>
    <!---
    var now=new Date();
    document.write("The Time is "+now);
    // --->
    </SCRIPT>
    </HTML>

    3)     Click “NORMAL” and “PREVIEW tab, you will see the date and time is show there which means the javascript was executed.

    4)     Click back to “HTML” tab, you see the content of the javascript result is in there.

    5)     Sometimes, when you click “NORMAL”, then back to “HTML”, the javascript maybe removed.

    Kenneth suggested me to remove the “EditCompleteDocument="true"”.This resolved the problem of Javascript but it also removed “<HTML> and <HEADER>” in the HTML tab which is not acceptable in our case.
     
    Thanks, Qian

     

  •  08-24-2011, 8:26 AM 69800 in reply to 69776

    Re: JavaScript is executed in “NORAML”, “PREVIEW” tab and considered the result as part of the content.

    Hi qsun,
     
    We are investigating this issue and will get back to you as soon as possible.
     
    Regards,
     
    Ken
  •  08-31-2011, 3:58 PM 69895 in reply to 69800

    Re: JavaScript is executed in “NORAML”, “PREVIEW” tab and considered the result as part of the content.

    This issue has been open for quite a while and CuteSoft commented a week ago that this was being looked into.  What is the status?
View as RSS news feed in XML