Is there a way to prevent people from pasting formatted text into the rich text editor? I need to make sure only our approved styles are used.

enter image description here


Yes you can do this by modifying the master page and adding a little bit of JavaScript.

Rich Text Editor support pasting Rich Text as-is as well as Plain Text. In your case you need to enable the Plain Text mode.

For that first get the available modes


And set the Plain Text mode


  • That's for SharePoint 2010. – matt Jan 14 '15 at 0:22
  • @matt the same concept you can use in 2013. Read the comments. – Amal Hashim Jan 14 '15 at 0:46

Add this piece of JavaScript (see Amal's answer) somewhere on the site:

$('[contenteditable]').attr('DefaultPasteModeResolver', 'PasteClean');

Then hide the pasting options from the ribbon and the flyout with CSS:

#rtePasteFlyoutOptions #rtePasteFlyoutOption0,
#Ribbon\.EditingTools\.CPEditTab\.Clipboard\.Paste\.Menu li:first-child  {
    display: none;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.