Skip to content

apparchitekt/summernote-pasteplaintext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Summernote Paste Plain Text

Plugin for Summernote that removes HTML tags from pasted content.

Installation

Insert the JS file after Summernote files:

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

Configuration

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

Changelog

1.0.0

  • Published to GitHub and npm

About

Plugin for Summernote (www.summernote.org) that removes all tags when posting content into the editor.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published