All Projects → DiemenDesign → Summernote Cleaner

DiemenDesign / Summernote Cleaner

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

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Summernote Cleaner

Summernote Image Attributes
Summernote plugin to edit image attributes
Stars: ✭ 78 (-47.3%)
Mutual labels:  plugin, addon, wysiwyg
Painterro
Painterro - JavaScript painting plugin
Stars: ✭ 496 (+235.14%)
Mutual labels:  plugin, wysiwyg
Dialogic
💬 Create dialogs, characters and scenes to display conversations in your Godot games.
Stars: ✭ 414 (+179.73%)
Mutual labels:  plugin, addon
Obs Streamfx
StreamFX is a plugin for OBS Studio which adds many new effects, filters, sources, transitions and encoders - all for free! Be it 3D Transform, Blur, complex Masking, or even custom shaders, you'll find it all here.
Stars: ✭ 1,128 (+662.16%)
Mutual labels:  plugin, addon
rgpipe
lesspipe for ripgrep for common new filetypes using few dependencies
Stars: ✭ 21 (-85.81%)
Mutual labels:  word, office
Cathook
Training Software for the game Team Fortress 2
Stars: ✭ 256 (+72.97%)
Mutual labels:  plugin, addon
Desktopeditors
An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
Stars: ✭ 1,008 (+581.08%)
Mutual labels:  office, word
report
manually write doc(docx) by OOXML
Stars: ✭ 21 (-85.81%)
Mutual labels:  word, office
Mschart
📊 mschart: office charts from R
Stars: ✭ 94 (-36.49%)
Mutual labels:  office, word
Docx
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
Stars: ✭ 2,150 (+1352.7%)
Mutual labels:  office, word
typester
✒️ A WYSIWYG that gives you predictable and clean HTML
Stars: ✭ 29 (-80.41%)
Mutual labels:  wysiwyg, clean
Godot Engine.github Integration
A Godot Engine addon to integrate a native GitHub client inside Godot's Editor. Manage your project without even opening your browser!
Stars: ✭ 134 (-9.46%)
Mutual labels:  plugin, addon
craXcel-cli
Command line application to unlock Microsoft Office password protected files.
Stars: ✭ 44 (-70.27%)
Mutual labels:  word, office
Vuewordcloud
Generates a cloud out of the words.
Stars: ✭ 284 (+91.89%)
Mutual labels:  word, plugin
WordMat
WordMat is an add-in to MicroSoft Word enabling math functionality
Stars: ✭ 25 (-83.11%)
Mutual labels:  word, office
Nord Tmux
An arctic, north-bluish clean and elegant tmux color theme.
Stars: ✭ 567 (+283.11%)
Mutual labels:  clean, plugin
CleanUI
Android library to create beautiful, clean and minimal UIs.
Stars: ✭ 19 (-87.16%)
Mutual labels:  toolbar, clean
Docs2Pdf
Bulk convert word/powerpoint/excel file to pdf.
Stars: ✭ 27 (-81.76%)
Mutual labels:  word, office
Godot Engine.file Editor
A Godot Engine addon that adds a File Editor for multiple file types editing. Create and Write plain text files, configuration files and csv files with custom visualizers and previews. Also supports file translations!
Stars: ✭ 70 (-52.7%)
Mutual labels:  plugin, addon
Plugin.video.catchuptvandmore
Replay, Live TV and websites videos addon for Kodi
Stars: ✭ 131 (-11.49%)
Mutual labels:  plugin, addon

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:

<script src="summernote-cleaner.js"></script>

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: '<br>', 
          icon: '<i class="note-icon">[Your Button]</i>',
          keepHtml: false,
          keepOnlyTags: ['<p>', '<br>', '<ul>', '<li>', '<b>', '<strong>','<i>', '<a>'], 
          keepClasses: false,
          badTags: ['style', 'script', 'applet', 'embed', 'noframes', 'noscript', 'html'],
          badAttributes: ['style', 'start'],
          limitChars: false, 
          limitDisplay: 'both',
          limitStop: false
    }
});

Documentation

action:

Options: ( 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 <p><br></p>

keepHtml:

  • true = Keep only tags listed in keepOnlyTags
  • false = Remove all Tags

keepOnlyTags:

List of tags to keep if keepHTML set to true. Formatted with opening and closing brackets ['<p>', '<ul>']

keepClasses:

  • true = keep all classes
  • false = remove all classes

badTags:

Remove full tags with contents. Tags listed by name only ['style', 'script']

badAttributes:

Remove attributes from tags. Attributes listed by name only ['style', 'start']

limitChars:

Limits the number of characters in the summernote

  • false or 0 = allows for max input
  • numbers > 0 = limit on number of characters

limitDisplay:

Shows in the status area the total html & text characters Options: ( text | html | both )

  • text = text character count only
  • html = html character count only
  • both = both html & text

limitStop:

Limits the number of characters set by limitChars.

  • true = stops input
  • false = doesn't stop input

Thanks:

  • wheelspin
    • For adding Microsoft Browsers Support, and modifying the alert.
  • Diemen Design
    • Check out our other Summernote Plugins via our main Github page.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].