RadEditor for ASP.NET AJAX Version Q3 2008 released 11/25/2008 (release history)

Cleaning Word Formatting

Run example in: C# VB.NET

   
  
 
 
   
Use the Paste from WordPaste From Word button, Paste from Word cleaning Fonts and SizesPaste From Word No Fonts No Sizes button, or Paste Plain TextPaste Plain Text button tools to strip and paste text copied from MS Word.
If you copy from Word and click the regular Paste or Ctrl+V a dialog will prompt you for format stripping.
Use the Format StripperFormat Stripper tool icon to remove Word-formatting from existing text in the RadEditor.
Format Stripper Demo
 
StripFormattingOptions options:
   
  
 
 
   
The MS Word formatting of the text pasted here will be removed automatically.

This is done by setting the StripFormattingOnPaste property to MSWordNoFonts.

The enumeration values are:
None
MSWord (retains fonts and sizes)
MSWordNoFonts
MSWordRemoveAll
Css
Font
Span
All

Example Source Code & Description

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2009 © Telerik. All right reserved  | 
Telerik Inc, 275 Grove Street, 4th Floor, Newton MA 02466