Need help with summernote-cleaner?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

DiemenDesign
148 Stars 96 Forks MIT License 105 Commits 15 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 72,050
wysiwyg
HTML
CSS
toolbar
22 commits
# 442,022
Ruby
discogs
JavaScr...
toolbar
4 commits
# 171,758
HTML
PHP
PHPUnit
stub
2 commits
# 201,644
Elixir
Objecti...
isometr...
CSS
2 commits
# 155,143
PHP
Firebas...
phantom...
codeign...
2 commits
# 500,040
PHP
faceboo...
Twitter
faceboo...
2 commits
# 534,756
JavaScr...
wysiwyg
toolbar
2 commits
# 369,927
PHP
HTML
Shell
server-...
2 commits
# 601,813
JavaScr...
wysiwyg
toolbar
1 commit
# 485,772
Shell
HTML
flask-a...
Sass
1 commit
# 275,284
HTML
JavaScr...
vue-com...
Vue.js
1 commit
# 417,613
Ember
TypeScr...
ESLint
HTML
1 commit
# 579,432
JavaScr...
wysiwyg
toolbar
1 commit
# 603,965
JavaScr...
wysiwyg
toolbar
1 commit
# 436,123
Ruby
JavaScr...
wysiwyg
toolbar
1 commit
# 226,937
wysiwyg
HTML
CSS
toolbar
1 commit
# 137,229
source-...
c-sharp
js
bridge
1 commit

summernote-cleaner

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.

Installation

1. Include JS

Include the following code after Summernote:


2. Supported languages

Currently available in English!

3. Summernote options

$('.summernote').summernote({
    toolbar:[
        ['cleaner',['cleaner']], // The Button
        ['style',['style']],
        ['font',['bold','italic','underline','clear']],
        ['fontname',['fontname']],
        ['color',['color']],
        ['para',['ul','ol','paragraph']],
        ['height',['height']],
        ['table',['table']],
        ['insert',['media','link','hr']],
        ['view',['fullscreen','codeview']],
        ['help',['help']]
    ],
    cleaner:{
          action: 'both', 
          newline: '
', icon: '[Your Button]', keepHtml: false, 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.