paste word clean code problem

Last post 09-15-2005, 1:09 PM by Adam. 9 replies.
Sort Posts: Previous Next
  •  08-29-2005, 9:54 AM 9981

    paste word clean code problem

    I want the code to be cleened when pasted from MS Word...

    What is the function and how do I write it..

    Is there a list with all the functions..??

    Sjur
  •  08-29-2005, 12:28 PM 9993 in reply to 9981

    Re: paste word clean code problem

    EditorOnPaste

    Specifies the manner in which the editor handles pasted text.

    PasteBehavior (Enumerates the manners in which the editor handles pasted text. )

    Member Name Description
    Default When you paste text into the editor it is not processed.
    Disabled Paste function is disabed.
    PasteWord When you pasting the content from Word into the editor, the non-required code that usually comes with pasting from Word are automatically cleaned up.
    PasteText When you paste text into the editor, all HTML formatting is stripped. This option is ideal for content management systems where you want absolute control over the formatting
    ConfirmWord When you pasting the content from Word into the editor, will prompt users with a popup prompt to clean the non-required code.

    Example:

     

                   editor.EditorOnPaste = "ConfirmWord" 

    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

  •  08-30-2005, 4:08 AM 10012 in reply to 9993

    Re: paste word clean code problem

    I have tried this but get error:

    Microsoft VBScript runtime error '800a01b6'

    Object doesn't support this property or method: 'editor.EditorOnPaste'

    Here is code:

    <%
                                            If len(ArticleText)<1 then                                   
                                            content =  "Skriv tekst her"
                                            else
                                            content = ArticleText
                                            end if               
                                            Set editor = New CuteEditor                             
                                            editor.ID = "Text"
                                            editor.Culture = "da-DK"
                                            editor.Text = content
                                            editor.FilesPath = "/CuteEditor/CuteEditor_Files"
                                            editor.ImageGalleryPath = "/data/adminimg"
                                            editor.DocumentPath= "/data/adminfiles"
                                            editor.mediapath= "/data/adminfiles"
                                            editor.EditorWysiwygModeCss = "asp.css"
                                            editor.MaxImageSize = 100
                                            editor.EditorOnPaste = "ConfirmWord"
                                            editor.Width = "410px"
                                            editor.Height = "300px"
                                            editor.ThemeType="OfficeXP"
                                            editor.AutoConfigure = "jagooarticle"                    
                                            editor.Draw()
                                            %>


  •  08-30-2005, 12:49 PM 10027 in reply to 10012

    Re: paste word clean code problem

    Which version of CuteEditor for ASP are you using?
    This feature is only available at the version 4.x.
     
     

    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

  •  08-31-2005, 3:13 AM 10050 in reply to 10027

    Re: paste word clean code problem

    I just upgraded...and as long as I have the + and - in bottom-right corner i got the 4.x version? right?

     

  •  09-01-2005, 4:29 AM 10069 in reply to 10050

    Re: paste word clean code problem

    Tried the command in the enableall.asp file aswell with same result:

    Microsoft VBScript runtime error '800a01b6'

    Object doesn't support this property or method: 'EditorOnPaste'

    Sjur


  •  09-02-2005, 1:31 AM 10091 in reply to 10069

    Re: paste word clean code problem

    Adam,
    I really need help on this one.... could I download the files ones more..maybe there are something wrong with some of my files?..
    I must have version 4.X and this function does not work.

    Thanks

    Sjur
  •  09-02-2005, 1:39 AM 10092 in reply to 10091

    Re: paste word clean code problem

    Editor.EditorOnPaste is a new property of the Version 4.x

    Can you just download the control 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

  •  09-15-2005, 5:00 AM 10590 in reply to 10092

    Re: paste word clean code problem

    This solved the problem.

    Thanks
  •  09-15-2005, 1:09 PM 10620 in reply to 10590

    Re: paste word clean code problem

View as RSS news feed in XML