CleanWord

Last post 03-29-2006, 2:31 AM by Sjur. 2 replies.
Sort Posts: Previous Next
  •  03-23-2006, 5:39 AM 17492

    CleanWord

    Hi,
    I am using the latest version.
    In my asp-script I am depending that the heading-code from word is clean (<h2>Hading</h2>)

    Is it a way to make sure that this really happens, so we don't have to use the PasteText function and do all the formatting once again.

    Need urgent reply if possible.

    Thanks.

    Sjur



  •  03-23-2006, 3:59 PM 17521 in reply to 17492

    Re: CleanWord

    Sjur,
     
    Please check the following article:
     

    Specifies the manner in which the editor handles pasted text.

     


    Example Code

          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               'Specifies the manner in which the editor handles pasted text.
               editor.EditorOnPaste = "Disabled"
               editor.Text = "Hello World"
               editor.Draw()
          %>

    Members

    Member Name Description
    Default When you paste text into the editor it is not processed.
    Disabled Paste function is disabed.
    PasteCleanHTML When you pasting the html code into the editor, the empty tags, redundant nested tags and messy or unreadable HTML code are automatically cleaned up.
    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.

     


    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

  •  03-29-2006, 2:31 AM 17681 in reply to 17521

    Re: CleanWord

    Thanks Adam, I have tried those, that is, I was not aware of the PasteCleanHTML.

    Does that function clean code better than PasteWord?


    My problem is that I want to keep the <H1>heading1</H1> and <H2>Heading2</H2> tags but I do not want all the:
    class=MsoNormal and so on..

    Is there some way I can specify what tags to clean or something else...

    Thanks Sjur

View as RSS news feed in XML