Catching and cleaning of pasted Word

Last post 07-15-2005, 11:33 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  07-15-2005, 5:53 AM 8760

    Catching and cleaning of pasted Word

    Our content managers usually write up their articles in Word.  We want CuteEditor to clean the text input immediately after pasting. A short look in the "clean.aspx" file shows, that it is possible to use the function calls codeCleaner('word'), codeCleaner('span') and so on.

    We need a solution to catch the events fired from
     
    'CTRL-V',
    INSERT from the context menue (right mouse button) and 
    INSERT-Button from CuteEditor.

    After catching we have to execute codeCleaner('word'), codeCleaner('span') and codeCleaner('font'),
    before the text reaches Cuteeditor

    If this is not possible, the Editor is not the right tool for us. Sorry :-(

    Pelase, advise.
  •  07-15-2005, 11:33 AM 8770 in reply to 8760

    Re: Catching and cleaning of pasted Word

    mehlmann,

    Please set your Editor.EditorOnPaste Property to:
     
    Editor.EditorOnPaste = CuteEditor.PasteBehavior.PasteWord

    Or

    Editor.EditorOnPaste = CuteEditor.PasteBehavior.ConfirmWord

    Hope it helps.



    Editor.EditorOnPaste Property
    Specifies the manner in which the editor handles pasted text.

    PasteBehavior Enumeration
    Enumerates the manners in which the editor handles pasted text.

    Members:

    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.

    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