by DiemenDesign

DiemenDesign / summernote-cleaner

Plugin for Summernote that adds a Button and/or Paste functionality for cleaning MS Word Crud from e...

133 Stars 97 Forks Last release: Not found MIT License 98 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


A plugin for the Summernote WYSIWYG editor.

summernote-cleaner removes the unnecessary and possibly layout breaking Crud that gets added by MSWord, Open Office, and Libre Office Documents.

The plugin can function in a couple of different ways. It can have a Toolbar Button which allows the Cleaning of the Editor's Text, or Pasted Text can be Cleaned when Pasted into the Text Editor.

The plugin can also limit the number of characters, with options to display text and/or HTML count in the status bar area.


1. Include JS

Include the following code after Summernote:

2. Supported languages

Currently available in English!

3. Summernote options

        ['cleaner',['cleaner']], // The Button
          action: 'both', // both|button|paste 'button' only cleans via toolbar button, 'paste' only clean when pasting content, both does both options.
          newline: '
', // Summernote's default is to use '

' notStyle: 'position:absolute;top:0;left:0;right:0', // Position of Notification icon: '[Your Button]', keepHtml: false, // Remove all Html formats keepOnlyTags: ['

', '
', '

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.