Posts

Showing posts from February, 2019

Enable PowerPaste to Sitecore Rich Text Editor

In this blog post I will show how you can change Rich Text to behave similar like the TinyMCE PowerPaste plugin . Changing the behaviour of paste  When an editor is pasting text in the rich text editor, we can control how much formatting is removed. In this example I have set the Paste to remove everything except newlines. This setup could help content editors to easier move text from work documents(or other 3rd party tools) over to Sitecore without needing to use one of the paste buttons. Changes needed to apply "Power Paste" In the file: ~/sitecore/shell/Controls/Rich Text Editor/EditorPage.aspx there is an EditorUpdatePanel with the setting StripFormattingOptions and StripFormattingOnPaste . The original values are set to "MSWordRemoveAll,ConvertWordLists". If we change this to StripFormattingOptions="AllExceptNewLines" StripFormattingOnPaste="AllExceptNewLines" we would have the "Power Paste" activated. Other opti