AllowScriptCode

  •  02-08-2013, 9:15 AM

    AllowScriptCode

    Enable Javascript not work.

     

    I set Editor1.AllowScriptCode = True in server side but the Javascript is removed when i save?

     

    I have this in code behind:

    1.   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
    2.   
    3.      Editor1.EnableAntiSpamEmailEncoder = True
    4.      Editor1.UseHTMLEntities = False
    5.   
    6.       Editor1.Skin = "office2003silver2"  
    7.   
    8.       Editor1.SecurityPolicyFile = "admin.config"  
    9.       Editor1.Toolbar = "admin_toolbar"  
    10.       Editor1.EnableObjectResizing = False  
    11.       Editor1.AllowScriptCode = True
    12.       Editor1.EditCompleteDocument = True  
    13.   
    14.       Editor1.PasteMode = RTE.RTEPasteMode.Disabled  
    15.       Editor1.ShowPreviewToolbar = False  
    16.       Editor1.ShowCodeToolbar = False  

View Complete Thread