CuteEditor for .NET

Control formatting of pasted text

Control formatting of pasted text

With Cute Editor, it's easy to control formatting of pasted text. You can specify if formatting is stripped when text is pasted into the editor.



To control formatting of pasted text, you need to use Editor.EditorOnPaste Property Property and PasteBehavior Enumeration.

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.

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 except for paragraph marks. This option is ideal for content management systems where you want to import text from other word processors and strip off any strange formatting commands they included
PastePureText 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.
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.
PasteAsHTML The content will be inserted into Cute Editor as HTML source.