Plugin for Summernote that removes HTML tags from pasted content.
Insert the JS file after Summernote files:
<script src="summernote-pasteplaintext.js"></script>Per default this plugin will remove all HTML tags when you paste content into Summernote, except those that are specified in allowTags:
$('textarea.summernote').summernote({
allowTags: ['a', 'b', 'br', 'em', 'p', 'strong'],
});The default list of allowed HTML tags:
- a
- abbr
- acronym
- b
- bdi
- bdo
- big
- br
- cite
- code
- del
- dfn
- em
- i
- ins
- mark
- p
- q
- s
- small
- strong
- sub
- sup
- time
- u
- tt
- var
- wbr
- Published to GitHub and npm