Plugin for Summernote that adds a Button and/or Paste functionality for cleaning MS Word Crud from editor text
Plugin for Summernote that adds a Button and/or Paste functionality for cleaning MS Word Crud from editor text
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.
Include the following code after Summernote:
Currently available in English!
…action: Options: ( both | button | paste )
keepHtml:
keepTagContents Removes the tag but keeps the contents, e.g. useful for removing links or spans without losing text content
badTags:
Remove full tags with contents. Tags listed by name only ['style', 'script']
NB: any tag not present in keepTagContents or badTags will remain
badAttributes:
Remove attributes from tags. Attributes listed by name only ['style', 'start']
limitChars: Limits the number of characters in the summernote
limitDisplay: Shows in the status area the total html & text characters Options: ( text | html | both )
limitStop: Limits the number of characters set by limitChars.
limitType Determines whether the limit is based on the text or html content length. Defaults to text if the option is not provided.
imagePlaceholder: Replace pasted images with a nominated placeholder.
alt attributes with data-title and alt used by Summernote.No open issues yet, or sync has not completed.