Strip Formating

Last post 06-16-2010, 7:34 AM by Eric. 4 replies.
Sort Posts: Previous Next
  •  05-27-2010, 7:19 PM 61400

    Strip Formating

    Hey guys, 
     
    I just wanna ask, I am currently using this editor and I would like to strip the formatting into raw text when the user copy and pastes text from a formatted document. Is there any way I can do that with this editor?
     
    Thanks, You'll help me a bunch!!
     
  •  05-28-2010, 7:53 AM 61422 in reply to 61400

    Re: Strip Formating

    --
  •  05-28-2010, 8:00 AM 61423 in reply to 61400

    Re: Strip Formating

    When you click button    , it will paste pure text.
     
    the following is its code:
    <%
       dim content
       content = "Type here"        
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"
       editor.Text = content   
       editor.EditorBodyStyle = "font:normal 12px arial;"
       editor.EditorWysiwygModeCss = "asp.css"
       editor.EditorOnPaste = "PastePureText"
       editor.Draw()            
       ' Request.Form(ID) access from other page
      %>
     
     
     
    Regards,
    Eric

     

     

  •  06-04-2010, 7:33 AM 61562 in reply to 61423

    Re: Strip Formating

    Thank you Eric,
     
    though I feel like an idiot for asking the question now. But thanks a whole lot anyway, you've been a great help..
  •  06-16-2010, 7:34 AM 61801 in reply to 61562

    Re: Strip Formating

    Thank you for asking.
     
    Regards,
    Eric
View as RSS news feed in XML