Monday, September 08, 2008

Controlling Pasting Behavior in RTE


By default, the rich text editor in Sitecore 6 is not prompting you to strip formatting if you are pasting from Word.
This can be configured however to act the way you want.
Just open the file \sitecore\shell\Controls\Rich Text Editor\Default.aspx and set the StripFormattingOnPaste attribute to "None". This will enable the prompt. If you want to have some default clean up actions executed implicitly, just set this attribute to any combination of the values, for example:
StripFormattingOnPaste="MSWordRemoveAll,Css,Font,Span"
This will remove Word formatting and also all inline styling, font and span tags behind the scenes.

More details and documentation can be found on Telerik's website:
http://www.telerik.com/help/aspnet/editor/radeditor-telerik.webcontrols.radeditor-stripformattingonpaste.html

2 comments:

Unknown said...

Hi,

When I try to download the samples, I'm prompted for a username and password. I've tried my sitecore username and password. Doesn't work.

Thanks,

Edward

Unknown said...

Sorry, the browser cached the credentials, so it worked for me.
Please try again.