Breaks when pasting HTML with embedded form tags

Last post 07-03-2007, 10:43 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  07-03-2007, 7:53 AM 31231

    Breaks when pasting HTML with embedded form tags

    I need to be able to paste in large chunks of HTML that has embedded open and close form tags already in it.  I am ok with them being stripped out in some way, but I have yet to figure out how to do this, even with Javascript, because the form gets totally screwed up the moment the form tags get in there.  PLEASE HELP!

    Thanks,
    Scott

    Filed under: , , ,
  •  07-03-2007, 10:43 AM 31244 in reply to 31231

    Re: Breaks when pasting HTML with embedded form tags

    Scott,
     
    Please try the following example and find the correct option for your situation.
     
     
    If you want to keep JavaScript and server side code, please use the following properties:
     

    Editor.AllowEditServerSideCode Property

    By default Cute Editor doesn't allow edit the Server side code. When this property is set to true, Cute Editor will allow edit the Server side code.


    Example Code

          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID= "Editor1"
               'When Editor.AllowEditServerSideCode Property is set to true, Cute Editor will allow edit the Server side code.
               editor.AllowEditServerSideCode = true
               editor.Text = "Hello World"
               editor.Draw()
          %>

     

    Editor.EnableStripScriptTags Property

    Specifies whether to remove inject script before write the string into the db.


    Example Code

          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               'Specifies whether to remove inject script before write the string into the db.
               editor.EnableStripScriptTags = false
               editor.Text = "Hello World"
               editor.Draw()
          %>

    See Also


    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

View as RSS news feed in XML